SolutionXML, MSXML can't write back into Document

N

naklov

Hallo there,
I create a visio document with SolutionXML.
I get the SolutionXML (MySolution), and goint to write it back ... bur
no chance. Get an error

code is below:

VBstr vs;

clVsoDoc.getSolutionXMLElement(VBstr("MySolution"),vs);
clVsoDoc.DeleteSolutionXMLElement(VBstr("MySolution"));
clXmlParser.loadXML(CString(vs));
/*<--- // Do nothing in clXmlParser // ----->*/
clXmlParser.get_xml(tmpCS);
hr = clVsoDoc.putSolutionXMLElement(VBstr("MySolution"),VBstr(tmpCS));
 
N

naklov

I got it, ít's take my whole night but its sone.
There are some \n\r in the string from MSXML, which putSolution dont take it.
Im only remove this both charachters from the string tmpCS.

Thanx
 
Top