Original Post
Hi,
I''m looking for a simple XML parser that can be integrated in to my code easily, perhaps something I can derive from to give my classes the power to load\save their data to a file. I''m planning on using this to store data about my world, like spawn points, mission properties, etc...
I''e never used XML before but I think I understand the concept. Here is a sample of what I''d like to do(hope the html doesn''t screw it):
..and I''ve started playing with a dtd.
I''ll only be storing\retrieving simple data like this so I have no need to a massive 100% correct implementation. I''d like source so I can incorperate the code in my app rather than use a dll ( I''m crossplatform with SDL ).
Could anyone suggest any source and suggest anything that they think I should know\read. (I''m not buying books for a while, 15 books in 3 months is a little too much)
Many Thanks
Chris
<?xml version="1.0"?>
<!DOCTYPE World SYSTEM "World.dtd">
// This is just a modification of something I found for a sales system. I''ll be reading some doco soon on a proper implementation
<World VERSION="1.0.0">
<SpawnPoint>
<PositionX="192.0355234" PositionX="192.035234" PositionY="5.035643" PositionZ="2.000000" />
<Delay="1"/>
</SpawnPoint>
</World>
|