> XercesDOMSupport domSupport;
> XercesParserLiaison parserLiaison(domSupport);
> const DOMDocument* Domdoc =
parserLiaison.mapToXercesDocument(theDocument);
> if ( Domdoc == NULL ) {
> cerr << "Domdoc is NULL" << endl;
> }
It looks like you've create a XercesParserLiaison instance in order to
recover the underlying Xerces DOMDocument from an instance you've created
with XalanSourceTreeParserLiaison. Since there is no underlying
DOMDocument, it's not surprising it returns a null pointer.
If you really want to work the Xerces-C DOM, then use a
XercesParserLiaison instance instead of a XalanSourceTreeParserLiaison.
However, you should be aware that performance will suffer. If you intend
to modify the DOMDocument and use it again with Xalan-C, you must start
with a Xerces DOMDocument and use the XercesParserLiaison to wrap it for
use with Xalan-C. There is some information regarding this in the
documentation, and you can search the mail archive for more information.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]