You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by mistral <t_...@yahoo.com> on 2006/11/28 07:06:30 UTC
using Xalan Xpath and Xerces::DOMDocument
Hi All,
I’m trying to use “Xalan-C 1.10 “ with app that is using Xerces deprecated
API. (through Xerces 2.7.0).
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.
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?
I really appreciate if u can share yours knowledge …code example are welcome
Thank
Tamar
--
View this message in context: http://www.nabble.com/using-Xalan-Xpath-and-Xerces%3A%3ADOMDocument-tf2716507.html#a7573897
Sent from the Xalan - C - Users mailing list archive at Nabble.com.
Re: using Xalan Xpath and Xerces::DOMDocument
Posted by mistral <t_...@yahoo.com>.
Thanks ...
I found several example in the forum, one that help me is:
http://marc.theaimsgroup.com/?l=xalan-c-users&m=108385669500218&w=2
http://marc.theaimsgroup.com/?l=xalan-c-users&m=108385669500218&w=2
Tamar
--
View this message in context: http://www.nabble.com/using-Xalan-Xpath-and-Xerces%3A%3ADOMDocument-tf2716507.html#a7594179
Sent from the Xalan - C - Users mailing list archive at Nabble.com.
Re: using Xalan Xpath and Xerces::DOMDocument
Posted by David Bertoni <db...@apache.org>.
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