You can use the local-name()
XPath function. Instead of selecting a node like
/path/to/x:somenode
you can select all nodes and filter for the one with the correct local name:
/path/to/*[local-name() = 'somenode']
More Related Contents:
- How to ignore namespace when selecting XML nodes 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 does “xmlns” in XML mean?
- How to query XML using namespaces in Java with XPath?
- XPath query to get nth instance of an element
- Getting attribute using XPath
- XPath to select Element by attribute value
- How can I use XPath to find the minimum value of an attribute in a set of elements?
- XPath with multiple conditions
- XML Namespace URI with HTTPS?
- How to find the max attribute from an XML document using Xpath 1.0
- Get nodes where child node contains an attribute
- XSLT Replace function not found
- How do you identify duplicate values in a numerical sequence using XPath 2.0?
- Using XPath, How do I select a node based on its text content and value of an attribute?
- distinct in Xpath?
- How can I select an element with multiple classes with Xpath?
- WiX Installer: using xslt with heat.exe to update attributes
- XPath find all elements with specific child node
- What is the difference between xsd and xsi?
- How do I generate a comma-separated list with XSLT/XPath?
- Matching a node based on a sibling’s value with XPath
- XSLT – Comparing preceding-sibling’s elements with current’s node element