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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top