<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1126" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=178020319-04122002><FONT face=Arial size=2>I have the following
XML document in a file called "foo.xml":</FONT></SPAN></DIV>
<DIV><SPAN class=178020319-04122002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=178020319-04122002><FONT color=#008080 size=1><FONT face=Arial
color=#000000 size=2><SPAN class=178020319-04122002><FONT face=Arial
color=#000000 size=2> <?xml
version="1.0" encoding="UTF-8"?></FONT></DIV>
<DIV>
<DIV><SPAN class=178020319-04122002><FONT face=Arial color=#000000 size=2><SPAN
class=178020319-04122002><FONT color=#008080 size=1><FONT face=Arial
color=#000000 size=2><SPAN class=178020319-04122002><FONT face=Arial
color=#000000 size=2>
</FONT></SPAN></FONT></FONT></SPAN><a></FONT></SPAN></DIV>
<DIV><SPAN class=178020319-04122002><FONT face=Arial color=#000000
size=2> <SPAN class=178020319-04122002><FONT color=#008080
size=1><FONT face=Arial color=#000000 size=2><SPAN
class=178020319-04122002><FONT face=Arial color=#000000
size=2>
</FONT></SPAN></FONT></FONT></SPAN><b
y="/a?b=c&d=f">a</b></FONT></SPAN></DIV>
<DIV><SPAN class=178020319-04122002><FONT face=Arial color=#000000 size=2><SPAN
class=178020319-04122002><FONT color=#008080 size=1><FONT face=Arial
color=#000000 size=2><SPAN class=178020319-04122002><FONT face=Arial
color=#000000 size=2>
</FONT></SPAN></FONT></FONT></SPAN></a></FONT></SPAN></DIV>
<DIV><SPAN class=178020319-04122002></SPAN> </DIV>
<DIV><SPAN class=178020319-04122002>My code is :</SPAN></DIV>
<DIV><SPAN class=178020319-04122002></SPAN> </DIV></FONT></FONT><FONT
face=Arial><FONT size=2>
<DIV><SPAN
class=178020319-04122002> SAXBuilder
builder = new
SAXBuilder();<BR> Reader reader =
new FileReader(
"foo.xml" );<BR> builder.build(
new BufferedReader( reader ) );</SPAN></DIV><SPAN
class=178020319-04122002></SPAN></FONT></FONT></DIV>
<DIV><SPAN class=178020319-04122002>
<DIV><SPAN class=178020319-04122002></SPAN><FONT face=Arial
size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>r<SPAN class=178020319-04122002>esults in the error
message:</SPAN></FONT></DIV><FONT face=Arial size=2><SPAN
class=178020319-04122002></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=178020319-04122002><FONT face=Arial size=2><SPAN
class=178020319-04122002></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=178020319-04122002><FONT><SPAN class=178020319-04122002><FONT
face=Arial size=2>
org.jdom.JDOMException: Error on line 1: The reference to entity "d" must end
with the ';' delimiter.</FONT></SPAN></DIV>
<DIV><BR><SPAN class=178020319-04122002><FONT face=Arial size=2>I have no
control over the input file. It is being supplied by a partner. I
have to parse this file and return a new version with a similar attribute
value. Is this a valid XML attribute value? If so, what can I do to
parse this file?</FONT></SPAN></DIV>
<DIV><SPAN class=178020319-04122002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=178020319-04122002><FONT face=Arial
size=2>Steve</FONT></SPAN></DIV></FONT></SPAN></SPAN></SPAN></BODY></HTML>