Hi,
I'm trying to disable the xml
declaration in my document from appearing. Is that doable?
small snippet of what I'm doing
XMLCh
tempStr[100];
XMLString::transcode("LS", tempStr, 99); DOMWriter * theSerializer = ((DOMImplementationLS*)m_impl)->createDOMWriter();
DOMErrorHandler * myErrorHandler = new
DOMPrintErrorHandler();
theSerializer->setErrorHandler(myErrorHandler);
XMLFormatTarget *myFormTarget = new MemBufFormatTarget();
if
(theSerializer->canSetFeature(XMLUni::fgDOMWRTFormatPrettyPrint,
true))
theSerializer->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true); if
(theSerializer->canSetFeature(XMLUni::fgXMLDeclString,
false))
theSerializer->setFeature(XMLUni::fgXMLDeclString, false);
theSerializer->writeNode(myFormTarget, *m_doc);
Regards and thanks, Mark Van Orman [EMAIL PROTECTED] Should you have further questions, please contact the ICS Customer Care Team: email: [EMAIL PROTECTED] |
- XML declaration Gareth Reakes
- RE: xml declaration Mark Van Orman
- RE: xml declaration Jesse Pelton