I've seen the same.
Try it with a simple test.xml file: the xml file only contains "<root/>".
When you pass the file to the DOMPrint sample, there's always the XML Declaration
added:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><root/>
Me too, I have wondered if there is a way to avoid this, and/or to write an XML
Declaration
without the "standalone" or "encoding" attribute.
Moreover, the DOMWriter does not write a newline after XML Declarations and Processing
Instructions.
I feel the root element in the above example should start on a new line.
I don't have the Xerces source-code here now, but in older versions I have been able
to fix this by adding
a chLF to a global called gEndPI:
static const XMLCh gEndPI[] =
{
chQuestion, chCloseAngle, <added>chLF, </added>chNull
};
Regards
Anton
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]