I would like to be able to parse an XML file that has several sections like the following:
<Songs_Database>
<Song FilePath="D:\Folder\Album\Artist-Title-12.mp3" FileSize="4991051">
<Display Author="Artist Name" Title="Track Title" Genre="Rock" Album="Album Name" Year="2000" Color="1492699" Cover="2050" Flag="23" />
<Infos SongLength="9169920" FirstSeen="709041133" FirstPlay="709041133" LastPlay="709041133" PlayCount="1" Bitrate="192" Key="D m" />
<Comment>Comment</Comment>
<BPM Bpm="22368" Phase="13248" BeatPhase="3" />
<FAME IsScanned="1" Volume="6490" />
<Automix MixType="2" TempoStart="147456" TempoEnd="6589440" FadeStart="27648" FadeEnd="8989696" RealStart="0" RealEnd="9169408" />
</Song>
</Songs_Database>
I need to be able to display the various elements in several different ways using a GUI interface. The first task though is to get this data into at least an array (grid) so that I can navigate and manipulate the values. The issue becomes that not every entry will necessarily have all of these elements all the time.
Here is the smallest possible entry per item listed:
<Song FilePath="D:\Folder\Album\Artist-Title-12.mp3" FileSize="4991051">
<Display Author="Artist Name" Title="Track Title" Color="1492699" Flag="23" />
<Infos FirstSeen="709171043" />
</Song>
Not sure if it would be more prudent to parse and export to a CSV then read in the CSV or if going straight to an array would be the most effiecent.
Looking for any insight and love the potential that your wrapper can provide in this. If you need more information glad to share. And I know at this point it sounds a little vague.
Chris