I have a XML document and I need to replace
<json type="array">
for
<m:telemoveis xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="http://www.projetoPei.com/Main"
xsi:schemaLocation="http://www.projetoPei.com/Main Main.xsd">
I tried the following FLOWER expression but the double quotes appear as "e ; .What am I doing wrong? Also how can i use the value of new-name instead of m after the return?
for $x in doc('FnacData.xml')/json
let $new-name :=" m:telemoveis xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:m="https://www.projetoPei.com/Main"xsi:schemaLocation="https://www.projetoPei.com/Main Main.xsd""
return
element m {
$x/*
}