XPath on an XML document with namespace

前端 未结 4 1969
清歌不尽
清歌不尽 2020-12-01 17:03

I\'m having this XML document with namespaces and I want to extract some nodes using XPath.

Here\'s the document:



        
4条回答
  •  攒了一身酷
    2020-12-01 17:37

    I think that

    //anyType[namespace-uri() = "http://www.w3.org/2001/XMLSchema-instance"][local-name() = "type"]
    

    Will do what you want.

提交回复
热议问题