Hi,

> theSerializer->canSetFeature(XMLUni::fgUTF8EncodingString, true) will still

There is no such feature.

> > (theSerializer->canSetFeature(XMLUni::fgUTF16EncodingString, true))
> >
> > theSerializer->setFeature(XMLUni::fgUTF16EncodingString, true);

No such feature.

> >
> >             XMLFormatTarget *myFormTarget = new
> > LocalFileFormatTarget(X(pszFilePath));
> >
> >             theSerializer->writeNode(myFormTarget, *pRootElement);

Here lies the problem. You are printing out the root element as opposed to 
the document. The root element does not have an XML Decl.

> > BTW setVersion(X("2.0")) cause an exception.  Not even sure this
> > is valid --
> > just experimenting.

There is no such version of XML.



Gareth

-- 
Gareth Reakes, Head of Product Development  +44-1865-203192
DecisionSoft Limited                        http://www.decisionsoft.com
XML Development and Services




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to