Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > serialize a C++ Tree data structure into a XML file

Reply
Thread Tools

serialize a C++ Tree data structure into a XML file

 
 
aspingley@gmail.com
Guest
Posts: n/a
 
      04-11-2008
Hi,

I wish to serialize a C++ Tree data structure into a XML file.

Can Xerces-C++ be used to do this? More precisely, Can C++ objects be
serialize to DOM documents?

Xerces-C++ can serialize DOM document data into a XML file using its
classes but how to convert C++ Tree object into DOM, if possible?



 
Reply With Quote
 
 
 
 
Ian Collins
Guest
Posts: n/a
 
      04-11-2008
wrote:
> Hi,
>
> I wish to serialize a C++ Tree data structure into a XML file.
>
> Can Xerces-C++ be used to do this? More precisely, Can C++ objects be
> serialize to DOM documents?
>

If you add the methods to them to do this, yes. There isn't anything
built into the language.

> Xerces-C++ can serialize DOM document data into a XML file using its
> classes but how to convert C++ Tree object into DOM, if possible?
>

Try a forum dedicated to Xerces-C++, this is a bit OT here. My answer
above applies no matter which DOM library you use.

--
Ian Collins.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hi, I want to implement a General Tree Data structure (Not Binary Tree ) which have more than 2 sub nodes? sharan C Programming 2 10-31-2007 02:58 AM
Hi, I want to implement a General Tree Data structure (Not Binary Tree ) which have more than 2 sub nodes? sharan C Programming 1 10-30-2007 11:01 PM
Hi, I want to implement a General Tree Data structure (Not Binary Tree ) which have more than 2 sub nodes? sharan C Programming 4 10-30-2007 08:21 PM
How to serialize the Tree - strcture data in C sweety C Programming 2 02-28-2006 12:46 PM
serialize to SQL Server Blob instead of XML serialize Gordz ASP .Net 3 06-07-2004 07:46 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57