Hi there,
I need to select all attribute nodes with value "xsd:string" using XPath.
The input document is an XML Schema, e.g.:
...
<xsd:element type="xsd:string">
...
Node 'xsd:element' is actually in the XML Schema namespace (prefix "xsd"
maps to "http://www.w3.org/2001/XMLSchema"), so this XPath expression:
//node()[namespace-uri()="http://www.w3.org/2001/XMLSchema"]
selects node "xsd:element". So far so good.
But, how do i select the attribute "type"? This attribute is not in the XML
Schema namespace but when i use the "xsd" prefix the XPath processor thinks
i am referencing the XML Schema namespace.
Any ideas? Thanks.
- Gerben