XPath Query to return nodes of a certain ComplexType
Lets say I have a ComplexType called CarType that is applied to elements such as Sedan and SUV. Ho开发者_如何学编程w do I write an XPath query that returns all of the Sedan and SUV nodes by just using CarType?
Assuming you have a schema-aware XPath 2.0 processor,
//element(*, CarType)
精彩评论