I have the following snippet:
let $s := <snippet><title>Some Title<b>bolded</b></title></snippet>
let $articles := element articles {
let $title := xdmp:quote($s//title)
let $title2 := xdmp:quote($s//title/node())
return (element title {$title}, element title2 {$title2})
}
return json:serialize($articles)
The above returns the following:
{"articles":{"title":"<title>Some Title<b>bolded</b></title>","title2":"Some
Title\n<b>bolded</b>"}}
I would like title2 not to have \n. I don't think this is possible. So I could
brute-force <title> tag out instead. Is there anything possible on the front
that may be worth investigating.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general