开发者

XPath Query to return nodes of a certain ComplexType

开发者 https://www.devze.com 2023-03-28 09:46 出处:网络
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

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)
0

精彩评论

暂无评论...
验证码 换一张
取 消