Hi Jan,
(Sending this back to the list...)
You do not need to change the source document, just your XPath expression.
When the FAQ says "add a namespace declaration with a prefix," it means
to the stylesheet.
Since you're not using a stylesheet, you need to write a custom instance
of org.apache.xml.utils.PrefixResolver that knows about your namespace
bindings. You can then use the overloaded of XPathAPI.selectNodeInterator
that takes a PrefixResolver.
Dave
Jan Pernica <[EMAIL PROTECTED]>
04/08/2005 09:14 AM
To: [EMAIL PROTECTED]
cc:
Subject: Re: XPathAPI selectNodeIterator
Thank you David. But I am not producing the XML and I am not able to
influence XML creation.
Regards
Jan
[EMAIL PROTECTED] wrote:
>This is a FAQ:
>
>http://xml.apache.org/xalan-j/faq.html#faq-N101DA
>
>Dave
>
>
>
>
>
>Jan Pernica <[EMAIL PROTECTED]>
>04/08/2005 08:51 AM
>
> To: [EMAIL PROTECTED]
> cc: (bcc: David N Bertoni/Cambridge/IBM)
> Subject: XPathAPI selectNodeIterator
>
>I have a question about how to use it.
>
>I have XML:
><?xml version="1.0" encoding="utf-8"?>
><getAllMonitoringNotificationsResponse
> xmlns="http://www.iconx.biz/webservices"
>
>xmlns="http://www.iconx.biz/webservices
>"><getAllMonitoringNotificationsResult>
>.....
>
>And I would like to use XPathAPI.selectNodeInterator( data,
>"getAllMonitoringNotificationsResponse/getAllMonitoringNotificationsResult")
>but it does not work because I have not specified namespace.
>But I do not what to specify in the nameSpace (Node). The problem is
>that the namespace has no prefix.
>
>XPathAPI.selectNodeInterator( data,
>"getAllMonitoringNotificationsResponse/getAllMonitoringNotificationsResult",
>
>nameSpace)
>
>
>Any tip will be appreciated
>
>Regards
>
>Jan
>
>
>
>
>
>
>