[xquery-talk] parsing xml fragments

Leo Studer leo.studer at varioweb.ch
Sun Jun 21 14:32:16 PDT 2015

Hi David

thanks for your input, which solves my problem in a easy (strange) way ;-)


> <![CDATA[<img src="aaa?&location=sio"/>]]>
> If you know all your ampersands are not escaped, and you can't fix the
> source documents  you could use a regexp-replace to escape them before
> parsing
> parse-xml-fragment(replace($feed,'&','&amp;'))

More information about the talk mailing list