Jim Williams
Usenet Archive
- Joined
- Jun 7, 2002
- Messages
- 4
- Reaction score
- 0
I have some questions aboyt XML, and it's use for file
loading/saving. I'm working in a C++ environment, on MS Windows.
I'll try and be as clear as possible - I apologise in advance if I get a bit waffely. I also apologise if these groups (comp.text.xml, com.lang.c++) are the wrong ones for these sorts of questions. If the are, please point me in the right direction.
Enough apologising - on with the questions:
I'm working with a 3D engine, that displays a scene. I want to be able to save the scene to a file, (and of course load the scene from the saved file). It has been specified that XML is the required format for the save files. The objects in the scene are stored in a tree heirachy. The obvious method to use is to start at the top of the tree, and traverse all it's branches, at each node (scene object) saving the information to a file. So I'd need an XML load and XML save function for every scene object. I think this is similar to object serialization, but at a slightly higher level, as the information I'm saving will generally be at a higher level than the C++ object - ie I want to save my own (usually simplified) representation of the object.
Does the above make sense? I hope so!
Does it sound like a good place to use XML?
Has anyone done anything similar?
Can anyone reccomend any libraries to do the above XML loading and saving? I'd it like to be as lightweight as possible. I don't want to use the .NET xml libraries.
Thank you very much
Jim
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
loading/saving. I'm working in a C++ environment, on MS Windows.
I'll try and be as clear as possible - I apologise in advance if I get a bit waffely. I also apologise if these groups (comp.text.xml, com.lang.c++) are the wrong ones for these sorts of questions. If the are, please point me in the right direction.
Enough apologising - on with the questions:
I'm working with a 3D engine, that displays a scene. I want to be able to save the scene to a file, (and of course load the scene from the saved file). It has been specified that XML is the required format for the save files. The objects in the scene are stored in a tree heirachy. The obvious method to use is to start at the top of the tree, and traverse all it's branches, at each node (scene object) saving the information to a file. So I'd need an XML load and XML save function for every scene object. I think this is similar to object serialization, but at a slightly higher level, as the information I'm saving will generally be at a higher level than the C++ object - ie I want to save my own (usually simplified) representation of the object.
Does the above make sense? I hope so!
Does it sound like a good place to use XML?
Has anyone done anything similar?
Can anyone reccomend any libraries to do the above XML loading and saving? I'd it like to be as lightweight as possible. I don't want to use the .NET xml libraries.
Thank you very much
Jim
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored