473,320 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

seeking xml load/save library for c++ ... plus some other questions

**** Post for FREE via your newsreader at post.usenet.com ****

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
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Jul 20 '05 #1
3 1745
> [snip]
Does it sound like a good place to use XML?
Has anyone done anything similar?


Robert Ramey (ramey at rrsd dot com) is working on a very good
[serialize] library.
It's quite generic.

If you really wish, you can implement XML on top of that. But I don't
think you need XML - you can use simple serialization (check out his
library).

Best,
John

John Torjo
Freelancer
-- jo**@torjo.com

Contributing editor, C/C++ Users Journal
-- "Win32 GUI Generics" -- generics & GUI do mix, after all
-- http://www.torjo.com/win32gui/

Professional Logging Solution for FREE
-- http://www.torjo.com/code/logging.zip (logging - C++)
-- http://www.torjo.com/logview/ (viewing/filtering - Win32)
-- http://www.torjo.com/logbreak/ (debugging - Win32)
(source code available)
Jul 20 '05 #2
Jim Williams wrote:
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.


http://www.xmlsoftware.com/parsers.html

In my company, they use Xerces (http://xml.apache.org/). It's not
lightweight, but it definitely works (even under MS Windows!).

Ralph
Jul 20 '05 #3

"John Torjo" <jt****@yahoo.com> wrote in message
news:c6**************************@posting.google.c om...
[snip]
Does it sound like a good place to use XML?
Has anyone done anything similar?
Robert Ramey (ramey at rrsd dot com) is working on a very good
[serialize] library.
It's quite generic.

If you really wish, you can implement XML on top of that. But I

don't think you need XML - you can use simple serialization (check out his
library).


As I'm sure you know, John, Robert's library has been accepted into
boost, and should be in the next release, which is coming soon.

Also, his library supports XML archives, though I'm not sure it's what
the OP wanted, since I can't see his message on my newsreader.

Jonathan
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Søren Johansen | last post by:
Hi, I am writing a small framework for doc/view applications. For this I have a document base class, CBaseDocument, that implements a number of load/save functionalities and some other stuff....
7
by: Richard Maher | last post by:
Hi, I am seeking the help of volunteers to test some software that I've developed which facilitates distributed two-phase commit transactions, encompassing any resource manager (e.g. SQL/Server...
1
by: Dave | last post by:
Hello all, I have written an expression interpreter, and a profiler has told me that a specific part of it is in need of optimization. My purpose in posting to this newsgroup is to solicit...
3
by: Jim Williams | last post by:
**** Post for FREE via your newsreader at post.usenet.com **** 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...
2
by: Sascha | last post by:
Hi there, I searched carefully through the web before finally deciding to post this message, because I could not find a solution for my problem. Hopefully someone will have a hint or explanation...
6
by: Greg M | last post by:
I have 5 years of MS Access/VBA development experience and am moving into the VB.net world. I am seeking a tutor which could facilitate this move. I live in Anderson, IN and am willing to...
5
by: Edwinah63 | last post by:
Hi everyone, i was wondering if anyone else had observed this and if there is any workaround or patch. i have some screens (an mdi child forms) with the buttons &Add, &Edit, &Save and E&xit,...
2
by: Jim | last post by:
When I manually enter data into a bound textbox then point my cursor to my Save button and press Save the data I just entered data does not save. However if I move my cursor to another text box or...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.