Hi
Everybody,
Basically want to
add new node to existing Xalan Document.
XalanDocument
theDocument is created as shown below ,
XalanSourceTreeInit
theSourceTreeInit;
XalanSourceTreeDOMSupport theDOMSupport;
XalanSourceTreeParserLiaison theLiaison(theDOMSupport);
XalanDocument* theDocument;
theDOMSupport->setParserLiaison(theLiaison);
XalanSourceTreeDOMSupport theDOMSupport;
XalanSourceTreeParserLiaison theLiaison(theDOMSupport);
XalanDocument* theDocument;
theDOMSupport->setParserLiaison(theLiaison);
....
theDocument =
theLiaison->parseXMLStream(inStream);
The "Domdoc" seems
to return null always. please do help me how to proceed on
this ?
XercesDOMSupport
domSupport;
XercesParserLiaison parserLiaison(domSupport);
XercesParserLiaison parserLiaison(domSupport);
const DOMDocument* Domdoc =
parserLiaison.mapToXercesDocument(theDocument);
if ( Domdoc == NULL ) {
cerr << "Domdoc is NULL" << endl;
}
if ( Domdoc == NULL ) {
cerr << "Domdoc is NULL" << endl;
}
Since I have already
coded eveything in Xalan I cannot switch over to Xerces. Any kind of hint will
be of great help to me.
Thanks
Praveen
Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. |
