Hi Gareth,
I am serializing the document:
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);
theSerializer->writeNode(myFormTarget, *m_doc);
unsigned int bufLen =
((MemBufFormatTarget*)myFormTarget)->getLen();
string temp = (char
*)((MemBufFormatTarget*)myFormTarget)->getRawBuffer();
I also tried setting the feature fgXMLDeclString to false. It is unsettalble
when I test it with canSetFeature...
Regards and thanks,
Mark
----- Original Message -----
From: "Gareth Reakes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 11, 2003 3:54 AM
Subject: Re: XML DECLARATION
> Hi,
> when you say it keeps adding it, how do you know? How are you
> serializing the document?
>
> Gareth
>
>
>
>
> On Mon, 10 Nov 2003, Mark Van Orman wrote:
>
> > MessageHi,
> >
> > I am trying to create a document without the xml declaration. I.e
<?xml version="1.0" encoding="ISO-8859-1"?>
> > Is that doable?
> >
> > createDocument(NULL, X("bla"), NULL); keeps adding it in there.
> >
> >
> >
> > Regards and thanks,
> >
> > Mark
>
> --
> 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]
>
> ---
> [This e-mail was scanned for viruses by Webjogger's AntiVirus Protection
System]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]