473,616 Members | 2,973 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 22 '05 #1
3 1210
> [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 22 '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 22 '05 #3

"John Torjo" <jt****@yahoo.c om> wrote in message
news:c6******** *************** ***@posting.goo gle.com...
[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 22 '05 #4

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

Similar topics

1
1866
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. As it is now, the constructor makes a semi-zombie object that has to be either Load'ed or New'ed (New being a method of this class) before it can be relied upon. class CBaseDocument
7
2374
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 or Oracle) controlled by Microsoft's Distributed Transaction Coordinator in a Windows2000 environment, with any resource manager under the control of DECdtm (e.g. Rdb (or Oracle via the XA Veneer)) in a VMS environment.
3
1763
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 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.
1
1528
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 suggestions on how I might accomplish my intended aim more efficiently. My interpreter supports the "if-then-else" construct. In addition, it supports variables, which means it has a symbol table. As you probably suspect, the symbol table is...
2
4623
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 for me! I apologize for the length of this posting, but I wanted to make sure that I get an answer other than "Hey man, just use LoadControl!", because this is not what I want. The Task: Isolate a collection of web forms which are created as
6
2009
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 travel to Indianapolis or within 50 miles of my home. I have some specific questions that I would like answered/explained to me. I would also like to develop a mentoring relationship which would allow me to ask questions in the future as well (for a...
5
1533
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, the idea being that the user can use Alt+A, Alt+E etc etc when any screen loads, Add, Edit and Exit are enabled.
2
1217
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 grid on the form, after entering the data, then press Save it saves properly. Two questions: 1. Why doesn't it save when I directly envoke the save operation without moving out of the textbox first? 2. Is there a workaround other than...
11
1931
by: Eigenvector | last post by:
I apologize if this is a trivial question, but it's always made me wonder when I have to compile my code. There are some #includes that you don't really need to reference in your library and header references in the compilation string. For instance the standard hello.c #include <stdio.h> int main()
0
8203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8146
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8647
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8297
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5550
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4063
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2579
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.