Re: [xml] xpath: empty nodeset

On Mon, Mar 11, 2002 at 10:50:34AM +0100, Felix Natter wrote:

~/src/libxml2-2.4.17 $ ./testXPath -i ~/.ftimerrc.xml '//controlpoint'
Object is a Node Set :
Set contains 0 nodes:

where this is .ftimerrc.xml:

<?xml version="1.0"?>
<interval-controlpoints xmlns="";>
 <largest-interval unit="hours" value="10"/>
 <controlpoint unit="hours" value="10">
  <interval unit="hours" value="5"/>

  Yes, that means libxml2 XPath engine is compliant to the
W3C XPath specification.  controlpoint nodes are in a namespace
defined by your xmlns="" on the root.
doesn't match namespaced nodes with a local name 'controlpoint'
they have an expanded-name different from the one specified by the test.

  time to read the spec !


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]