* BSD licence
* Uses expat (Mozilla Public Licence)
* Pretty cross-platform (uses STL map, list, string)
* http://www.geocities.com/ResearchTriangle/System/5640/
I made up a 40-line program that reads in a cdindex result and dumps
the structure. Here's what it thinks of a CD I just put in. As you can
guess, parsing this into a CD description would not be hard at all.
$ xmltest ~/test.xml
CDInfo =
CDInfo children {
MultipleArtistCD =
MultipleArtistCD children {
Track Num = 11
Track =
Track children {
Name = The Silence
Artist = Mike Koglin
}
Track Num = 10
Track =
Track children {
Name = Anything You Want
Artist = Delta Lady
}
Track Num = 9
Track =
Track children {
Name = Rock Stone
Artist = Breeder
}
Track Num = 8
Track =
Track children {
Name = Love Simulation
Artist = Humate
}
Track Num = 7
Track =
Track children {
Name = MEss With Da Bull
Artist = RR Workshop
}
Track Num = 6
Track =
Track children {
Name = Gamelan
Artist = Red Devil
}
Track Num = 5
Track =
Track children {
Name = 'Pure' Frictions Groove
Artist = Voyager
}
Track Num = 4
Track =
Track children {
Name = Der Dritte Raum
Artist = Polarstem
}
Track Num = 3
Track =
Track children {
Name = Seaside Atmosphere
Artist = Stef, Pako & Ferick
}
Track Num = 2
Track =
Track children {
Name = Sexual Movement
Artist = Movement Perpetual
}
Track Num = 1
Track =
Track children {
Name = Waters of Jericho
Artist = Head Honcho
}
}
IdInfo =
IdInfo children {
DiskId =
DiskId children {
TOC First = 1
TOC Last = 11
TOC =
TOC children {
Offset Num = 11
Offset = 272002
Offset Num = 10
Offset = 235687
Offset Num = 9
Offset = 207005
Offset Num = 8
Offset = 187242
Offset Num = 7
Offset = 160600
Offset Num = 6
Offset = 137515
Offset Num = 5
Offset = 117620
Offset Num = 4
Offset = 82305
Offset Num = 3
Offset = 58610
Offset Num = 2
Offset = 39857
Offset Num = 1
Offset = 150
Offset Num = 0
Offset = 307035
}
Id = AQqikQk5fzwzerrL.demO4K5Q4U-
}
}
NumTracks = 11
Title = Expeditions by Sasha & John Digweed (disc 2)
}