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 

           Summary: SetVersion is causing the application to dump core
           Product: Xerces-C++
           Version: 2.1.0
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi ,

I am using the function setVersion from the class DOMDocument.  During the 
execution it is getting core dump. 

Here is the code I have used.

 DOMImplementation* impl =  DOMImplementationRegistry::getDOMImplementation(X
("Core"));

        DOMDocument* doc = impl->createDocument(
                    0,                    // root element namespace URI.
                    X("company"),         // root element name
                    0);                   // document type object (DTD).

  doc->setVersion(X("XML1.0");  -----here it is core dumping ..
Basically I need to print the xml declaration in the file along with the full 
xml tree. At present I am able to build only XML tree . So I am trying to set 
the version,encoding ,standalone while creating xml document. But it is core 
dumping at the above location. 
Any body has any idea why it is core dumping. 
-Srikanth

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

Reply via email to