How to solve Ampersand (&) conversion issue in XML?

前端 未结 4 613
北恋
北恋 2021-01-21 06:07

I am creating XML file using XMLDocument, but when XML node get \'&\' as data, it converting in \"Ampersand(&)amp;\" but i need actual value that is \'&\', Can anyon

4条回答
  •  时光说笑
    2021-01-21 06:21

    I guess one can use below line. Option like "repair-full" will take & as & only

    let $InputXML := xdmp:unquote($inputSearchDetails, "", ("format-xml", "repair-full"))

提交回复
热议问题