Re: [xml] XPath question

On Mon, May 10, 2004 at 12:09:41PM -0400, Ed Day wrote:
I am relatively new to XPath, so perhaps there is something I don't
understand here.  I am using the following XPath expression:


to try and match the following simple node:


This is coming back as a non-match. Apparently something in the namespace
declaration is causing this.  If I remove that, or replace it with an

  And this is coming back as XPath #1 FAQ. A default namespace is a 
namespace and /MyElement won't select a namespaced element by definition
of the XPath language. Check the archives 


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]