[Thoughts wanted] Parts.xml - xml improvement on Part.lst


Re: [Thoughts wanted] V3 - Parts.xml - xml improvement on Part.lst
#17
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.

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
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Re: [Thoughts wanted] V3 - Parts.xml - xml improvement on Part.lst - by Tim Gould - 2013-02-04, 0:43

Forum Jump:


Users browsing this thread: 2 Guest(s)