Hi David thanks for your input, which solves my problem in a easy (strange) way ;-) Always Leo > > <![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,'&','&')) >