RE: [xml-dev] How to escape &dt=... (org.dom4j.DocumentException)

From
Michael Kay <>
To
,
Date
2006-04-21T21:36:54Z
ID
<019101c6658b$b5c84ba0$6401a8c0@turtle>
Thread
RE: [xml-dev] How to escape &amp;dt=... (org.dom4j.DocumentException)
> 
> One of my xml nodes contains an url that contains the text &amp;dt=...
> 
> When I try to parse this via DocumentHelper.parseText I get 
> the following exception:
> org.dom4j.DocumentException: Error on line 21 of document  : 
> The reference to entity "dt" must end with the ';' delimiter. 

Either the text contains & rather than &amp; - or you have put the text
through the parser twice.

Michael Kay
http://www.saxonica.com/