Hi,
I am serializing the following xml to a character string.
<NPCONF>
<UICFG>
<CFGEXUI name="UserDefineDlg" position="undocked">hide</CFGEXUI>
<myconf " />
<CFGEXUI name="EdgeLine" nbColumn="200" />
</UICFG>
</NPCONF>
part of code used.....
static const XMLCh gLS[] = { chLatin_L, chLatin_S, chNull };
DOMImplementation *impl =
DOMImplementationRegistry::getDOMImplementation(gLS);
DOMLSSerializer* myWriter = ((
DOMImplementationLS*)impl)->createLSSerializer();
DOMConfiguration* dc = myWriter->getDomConfig();
dc->setParameter( XMLUni::fgDOMWRTDiscardDefaultContent,true);
dc->setParameter( XMLUni::fgDOMWRTEntities,true);
XMLCh* theXMLString_Unicode = myWriter->writeToString(dom_root_node);
//convert theXMLString_Unicode to character string ...
Irrespective of the fgDOMWRTEntities attribute I get the following output
<NPCONF>
<UICFG>
<CFGEXUI name="UserDefineDlg" position="undocked">hide</CFGEXUI>
<myconf " />
<CFGEXUI name="EdgeLine" nbColumn="200"/>
</UICFG>
</NPCONF>
I don't want " to be replaced with " .
Is there any way to do this ? ( I have already done this by traversing through
the DOM tree and printing the node and contents. But I want to use
DOMLSSerializer as it can give a huge performance improvement)
Thanks in advance
Mini