BaseX attributes cannot be serialized

前端 未结 2 911
猫巷女王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()
    

提交回复
热议问题