This is FAQ (but I’m lazy to search duplicates today)
In XPath 1.0
//*[local-name()='name']
Selects any element with “name” as local-name.
In XPath 2.0 you can use:
//*:name
More Related Contents:
- how to ignore namespaces with XPath
- xpath expression from xml with namespace prefix
- How does XPath deal with XML namespaces?
- What are XML namespaces for?
- Xml Namespace breaking my xpath!
- XPath select node with namespace
- How to declare XPath namespaces in xmlstarlet?
- How to retrieve namespaces in XML files using Xpath
- XPath on an XML document with namespace
- What is the difference between .// and //* in XPath?
- How to execute XPath one-liners from shell?
- xmlns, xmlns:xsi, xsi:schemaLocation, and targetNamespace?
- xmllint failing to properly query with xpath
- case-insensitive matching in XPath?
- XPath: select text node
- XML Namespaces and Unprefixed Attributes
- XPath: Get parent node from child node
- Is there an XSLT name-of element?
- Get Nth child of a node using xpath
- What is the XPath to select a range of nodes?
- Navigating XML nodes in VBScript, for a Dummy
- How to select a node using XPath if sibling node has a specific value?
- What is the correct XPath for choosing attributes that contain “foo”?
- What is the difference between root node, root element and document element in XML?
- XPath to get all child nodes (elements, comments, and text) without parent
- How to remove namespaces from XML using XSLT
- How to apply the XPath function ‘substring-after’
- What is the difference between name() and local-name()?
- How can I use xpath querying using R’s XML library?
- XSLT Transform XML with Namespaces