-
Notifications
You must be signed in to change notification settings - Fork 5
Data File Format
jeremybrooks edited this page Sep 14, 2010
·
4 revisions
It seems to me that a more structured format for the data file would make querying more straightforward. Maybe:
<hu>
<entry date=“Wed, 26 May 2010 00:13:52”>
<weather temp=“17c”>Partly Cloudy</weather>
<music>
<track artist=“The Postal Service” album="" title=“Such Great Heights” time=“now”/>
<track artist=“The Replacements” album="" title=“Bastards of Young” time=“1274796429”/>
</music>
<applications>
<app status=“foreground” name=“Safari”/>
<app status=“background” name=“iTunes”/>
</applications>
<network>
<ssid connected=“true”>Simon</ssid>
<ssid connected=“false”>PirateNet</ssid>
</network>
<browser name=“Safari”>
<tab title=“scottjacksonx’s hu at master – GitHub” url=“http://github.com/scottjacksonx/hu”/>
<tab title=“Tumblr” url=“http://www.tumblr.com/dashboard”/>
<tab title=“Programming Like It’s 1995 « hackinghat.com” url=“http://www.hackinghat.com/index.php/programming/programming-like-its-1995”/>
</browser>
</hu>
Thoughts?
Update: This is a great idea. The next thing I’ll do to Hu is make it store data in this format.
Update: Simplified the format. Attributes are used when there will not be repetition, and elements used when there will be multiple items. It seems that to really be Hu, this needs to be in some kind of database. This format is a good step in that direction, and it should be relatively simple to migrate to an XML database in the future. Hopefully. :-)