On 30/12/2011 12:55, Uotinen Ilkka wrote:
Does anyone know? I have the xml file which can have sometimes like & and it should be &
 
Do I use xQuery? But How I should use it?
 

Best Regards, 

Ilkka Uotinen
Technical System Analyst 

You posted your email to the wrong address: it should be saxon-help@lists.sourceforge.net

If your file contains an & that should be & then it is not an XML file, which means that you cannot process it using XML tools such as XSLT and XQuery. You need to correct it using non-XML tools, treating it as a plain text file. It's hard to do that systematically unless you have very precise knowledge of what changes need to be made, for example how to identify the & characters that need to be changed. It's much better to fix the software that is generating bad XML in the first place.

Michael Kay
Saxonica