DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17278>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17278

How to print the XML declaration ?

           Summary: How to print the XML declaration ?
           Product: Xerces-C++
           Version: 2.1.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi,

I am using the
following piece of code to write the xml content into
the file. But this is not printing the XML declaration
even after setting SetVersion ,
SetEncodingName,SetStandAlone.
       DOMImplementation *impl          =
DOMImplementationRegistry::getDOMImplementation(tempStr);
                DOMWriter         *theSerializer =
((DOMImplementationLS*)impl)->createDOMWriter();
                       // plug in user's own error
handler
                DOMErrorHandler *myErrorHandler = new
DOMPrintErrorHandler();

theSerializer->setErrorHandler(myErrorHandler);

theSerializer->setEncoding(X("UTF-8"));

                XMLFormatTarget *myFormTarget = new
LocalFileFormatTarget(fileName.Data());
                theSerializer->writeNode(myFormTarget,
*doc);


Can any one tell me how to get this XML declaration node
to be printed into the file.

Thanks & Regards,
Srikanth

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

Reply via email to