Re: [xml] Escaping '/' in xpath

On Fri, Mar 30, 2001 at 03:36:38PM +0100, Wendsomde Yameogo wrote:

I would like to evaluate an Xpath expression which contains the '/'
character, which is also an operator in xpath. How to escape this
character or replace it with an entity reference? I couldn´t find
anything about it in the xpath spec. There is something about escaping
characters like '<' and other xml specific characters but nothing about
'/' which is an xpath operator.

My expression looks like:


(trying to find all NodeName Nodes with namespace

  Use the following:

 /descendant-or-self::*[function-namespace-uri() = ''
                        and local-name() = 'NodeName']


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]