How to 'select' from XML with namespaces?

后端 未结 3 964
被撕碎了的回忆
被撕碎了的回忆 2020-12-01 18:53

I have an XML document something like :::





        
3条回答
  •  醉梦人生
    2020-12-01 19:08

    If you don't care about the namespace, you can use the XPath `local-name()' function:

    
      
    
    

    Alternatively the same same thing can be expressed like this. I'm not certain if this is standard XPath and if all XPath implementations support it (ColdFusion does, so probably Java does as well). Maybe someone knows if this conforms to any standard.

    
      
    
    

提交回复
热议问题