Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


How serialize C++ data structures to XML with MSXML?

From: "Siegfried Heintze" <siegfried@-------.--->
To: NULL
Date: 12/24/2008 3:01:00 PM
Can the MSXML SAX interface be used for serialization? I thought it was only 
good for deserialization. What would I google search for to find some 
examples? I was wondering (and hoping) that IXMLWriter (I found in the tlb 
file) was part of the SAX interface. I did a google search for "MSXML SAX" 
but could not find any writing examples.

Oops, I did find 
http://www.deez.info/sengelha/2006/10/30/writing-streaming-xml-using-msxml/. 
But that example is not writing to a file. I want to write to a file.

Assuming the answer is yes (SAX can be used to write to files), if I could 
use the SAX interface for serialization, would it be more efficient?

Now I was looking for the functions to make the MSXML2::IXMLDOMDocument emit 
XML that is indented. I found such functions in IXMLWriter but not 
MSXML2::IXMLDOMDocument2. Also, how can I make MSXML2::IXMLDOMDocument emit 
the XML header (<?xml version="1.0" encoding="utf-8"?>.)

Assuming IXMLWriter is not inherantly tied to SAX, what is it for?

Thanks,
Siegfried





transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent