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

Discussion in 'C++' started by aspingley@gmail.com, Apr 11, 2008.

  1. Guest

    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?
    , Apr 11, 2008
    #1
    1. Advertising

  2. Ian Collins Guest

    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.
    Ian Collins, Apr 11, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gordz
    Replies:
    3
    Views:
    3,933
    John Oakes
    Jun 7, 2004
  2. sweety
    Replies:
    2
    Views:
    375
    osmium
    Feb 28, 2006
  3. sharan
    Replies:
    4
    Views:
    689
    CBFalconer
    Oct 30, 2007
  4. sharan
    Replies:
    2
    Views:
    831
    SM Ryan
    Oct 31, 2007
  5. sharan
    Replies:
    1
    Views:
    689
    CBFalconer
    Oct 30, 2007
Loading...

Share This Page