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=17160>. 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=17160 SetVersion is causing the application to dump core [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Additional Comments From [EMAIL PROTECTED] 2003-02-20 04:59 ------- Once I used the 1.0 in the setversion() function it is working fine. But I am interested in displaying the XML declaration node in the file along with the XML tree builded in my application. 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 after creation of the XML document. 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 body 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]
