Xml Namespace breaking my xpath!

I also have the following xPath:

/List/Fields/Field 

When I remove the xmlns from my XML
the xPath works fine. When it’s in
there my xPath finds nothing

If you cannot register a namespace binding and cannot use (assuming the registered prefix is “x”):

/x:List/x:Fields/x:Field

then there is another way:

/*[name()='List']/*[name()='Fields']/*[name()='Field']

Leave a Comment