04-08-2008 02:10 PM
04-09-2008 08:31 AM
While the CVIXML API does not provide a function for this, the underlying MSXML API lets one do this. Try the following code which loads a XML document and gets the XML as string. This should also work with XML that you programmatically create without saving to disk - just get the MSXML document handle and call MSXML_IXMLDOMDocumentGetxml.
#include <cvixml.h>
void main(void)
{
char *xml;
MSXMLObj_IXMLDOMDocument hDoc;
CVIXMLDocument doc;
CVIXMLLoadDocument("c:\\temp\\test.xml", &doc);
CVIXMLGetDocumentActiveXHandle(doc, &hDoc);
MSXML_IXMLDOMDocumentGetxml(hDoc, 0, &xml);
}
04-09-2008 09:36 AM
Thanks, Mohan.
That was what I was looking for.
Doug