Re: Svar: Re: [xml] XPath problem with namespaces

On Mon, Jun 07, 2004 at 09:40:00PM +0200, Erik F. Andersen wrote:
No, it doesn't work. About the only expression I can get to work is something like //*. This will return 
the Envelope (as expected) node as the first node in the result. The namespace for this node is SOAP-ENV 
(also as expected).

  You *must* provide the namespace declaration to the prefix used.
Read the example it shows how to bind namespaces to XPath evaluation context !


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]