BaseX attributes cannot be serialized

前端 未结 2 912
猫巷女王i
猫巷女王i 2021-01-21 10:25

I have this simple XML file:


  
    557
    Fleece Pullover&         


        
相关标签:
2条回答
  • 2021-01-21 10:59

    BaseX is just being strict about serialization. It won't complain if you force the attribute nodes into strings:

    xquery doc("catalog.xml")/*/product/@dept/string()
    
    0 讨论(0)
  • 2021-01-21 11:00

    The XQuery 3.1 Serialization specification provides the new "adaptive" serialization mode, which allows the serialization of attribute and namespace nodes. Since Version 8.0 of BaseX, this mode is used as new default.

    0 讨论(0)
提交回复
热议问题