mistral wrote:
Hi All,

I’m trying to use “Xalan-C 1.10 “ with app that is using Xerces deprecated
API. (through Xerces 2.7.0).

You should be aware that the deprecated DOM will be gone in the next version of Xerces-C, and support for it will also disappear in Xalan-C.

My targets are to use the xpath API + manipulate node location (importNode)
I explored several options…
1. work only with xalan: use XalanDocument and XPathEvaluator to evaluate
node(s), but when I tried to use the importNode()/getParentNode () methods,
I received exception, it seem the method is NOT implemented in the xalan.

Xalan-C's implementation is read-only, so you cannot call any mutating functions.


2. use Xerces DOMDocument methods to manipulate nodes, but I couldn’t figure
the right code for using Xerces::DOMDocument in Xalan should I use
XalanTransformer:: transform (I don’t own XSL file)
2.1 can I use the deprecated API with xalan?

Yes, but I urge you to change your application to use the new Xerces-C DOM. You should use DOMDocument instead of DOM_Document. If you search the archives, you'll find lots of responses to the question of how to use the Xerces-C DOM with Xalan-C.

Dave

Reply via email to