Maybe with a CDATA section?

let $x := doc(<a><![CDATA[main(){int i = 0;}]]></a>)
return replace value of node $x with ""

M.

On 10/18/2013 03:05 PM, Erdal Karaca wrote:
Hi all,
How can I process this query in basex:

let $x := doc(<a>main(){int i = 0;}</a>)
return replace value of node $x with ""


There are text contents that contain, for example, c code with curly braces which I do not want to be interpreted as embeded expressions.

As a workaround I could escape the curly braces, But, is there a better way/option to suppress interpreting text contents that look like embedded expressions?

Thanks!



_______________________________________________
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk