Re: [xml] a question about getting the element content with name space

On Mon, Nov 10, 2003 at 11:35:26PM -0800, Momena Akter Ahmed wrote:
Here is my xpath :

It worked okay. But after I added the namespace stuff,
how do I compose my xpath query to compare the content
of the child node ?

but you need to have the namespace prefix 'ns' defined in the
XPath context. In XSLT it's inherited from the node containing
the XPath expression. Outside XSLT there is no specification defining
this. The API is

to register a namespace to an XPath evaluation context.


Daniel Veillard      | Red Hat Network
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]