MSXML and CString !!!
-
I have a question about the MSXML parser ... I want to save a CString in an XML file with the MSXML parser ... So when the MSXML parser writes the string to the file does it check the string and convert some characters like "<, >, &, ..." to someone what is allowed for XML (< > ...) ??? Daniel ;) --------------------------- Never change a running system!
-
I have a question about the MSXML parser ... I want to save a CString in an XML file with the MSXML parser ... So when the MSXML parser writes the string to the file does it check the string and convert some characters like "<, >, &, ..." to someone what is allowed for XML (< > ...) ??? Daniel ;) --------------------------- Never change a running system!
You could write it to a CDATA section to create a node that accepts any kind of char, so you don't need to convert any char. It's as easy as: xmlDoc->createCDATASection("This is where the string goes"); I see dumb people
-
You could write it to a CDATA section to create a node that accepts any kind of char, so you don't need to convert any char. It's as easy as: xmlDoc->createCDATASection("This is where the string goes"); I see dumb people
And what when I want to write the string to a attribut, like
<ITEM description="Here is the string ... < > ...">
? Daniel ;) --------------------------- Never change a running system! -
I have a question about the MSXML parser ... I want to save a CString in an XML file with the MSXML parser ... So when the MSXML parser writes the string to the file does it check the string and convert some characters like "<, >, &, ..." to someone what is allowed for XML (< > ...) ??? Daniel ;) --------------------------- Never change a running system!
The MSXML DOM does the conversion for you & to & etc so you need not worry about it. However when you get a value out of the DOM it will not appear converted ie you will still retrieve &, the converted versions are there when the document is written to file or the XML retrieved with getXML etc
-
The MSXML DOM does the conversion for you & to & etc so you need not worry about it. However when you get a value out of the DOM it will not appear converted ie you will still retrieve &, the converted versions are there when the document is written to file or the XML retrieved with getXML etc
Thanks! Daniel ;) --------------------------- Never change a running system!