Version III
I've taken into account Mike's file format, but changed it to improve (to me at least) human readability. I'd be really interested to hear thoughts about my style vs Mike's for readability.
Here the optional components only show if they have data. Similarly IsAlias and IsPhysicalColour will only show when true.
For my copy of the library the parts.xml file is 3.5Mb or one MP3 song.
Tim
I've taken into account Mike's file format, but changed it to improve (to me at least) human readability. I'd be really interested to hear thoughts about my style vs Mike's for readability.
Code:
<PartEntry Filetype="Shortcut" IsOfficial="True" [IsAlias="True"]
[IsPhysicalColour = "True"] > <!-- These describe the attributes of the entry -->
<!-- Below is the data for the entry -->
<Filename>u9234c02.dat</Filename>
<Description>Train Track 12V Tapered Point Right Electric (Branching)</Description>
<Author>Steffen [Steffen]</Author>
<FilenameWithPath>C:\Program Files (x86)\LDraw\parts\u9234c02.dat</FilenameWithPath>
<Category>Train</Category>
[<Keywords></Keywords>]
[<Help></Help>]
[<History>2012-03-30 [PTadmin] Official Update 2012-01</History>]
[<BFC>CERTIFY CW</BFC>]
[<Comments></Comments>]
</PartEntry>
Here the optional components only show if they have data. Similarly IsAlias and IsPhysicalColour will only show when true.
For my copy of the library the parts.xml file is 3.5Mb or one MP3 song.
Tim