Groups | Blog | Home
all groups > dotnet xml > november 2003 >

dotnet xml : XPath queries with Namespaces


Wells Caughey
11/25/2003 5:21:03 PM
I am having trouble writing an XPath query that deals with namespaces. I've
see the documentation that says that I have to use a XmlNamespaceManager and
qualify my queries such that they match up with the definitions added to the
XmlNamespacemanager, but I want to write a query that pulls all of the
elements from my document that would otherwise match the
expression--regardless of their namespace. Does anyone know how to do this?

Thanks,
Wells

Bjoern Hoehrmann
11/26/2003 12:25:55 AM
* Wells Caughey wrote in microsoft.public.dotnet.xml:
[quoted text, click to view]

*[local-name() = "name"]

Selects all element children of the context node with a local-name
Wells Caughey
11/26/2003 12:07:09 PM
Thank you so much, that is exactly what I need!

Wells

[quoted text, click to view]

AddThis Social Bookmark Button