org.xml.sax.SAXException: occured... The element type "br" must be terminated by the matching end-tag "</br>".

"Ranjith Kodikara" <[email protected]> Tue, 7 Dec 2004 14:01:27 +0600
Newsgroups gmane.text.xml.xerces-j.user,gmane.comp.apache.incubator.general,gmane.text.xml.sax.general
Message-ID <[email protected]>
------=_NextPart_000_00B9_01C4DC65.3EF41E10
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Dear Friends,

I have written a java class to parse XML files using SAX (extending =
DefaultHandler). These xml files are generated from a database, and jsp =
is written and deployed in oc4j(same as Tomcat).=20
For some files only the following error comes... I checked xml files and =
no difference between xml's that are working fine and giving errors. all =
xml's are well formed.=20

This is the error
The element type "br" must be terminated by the matching end-tag =
"</br>".
org.xml.sax.SAXException: Stopping after fatal error: The element type =
"br" must be terminated by the matching end-tag "</br>".

But no br tag in the xml file...

If any of you have experienced this kind of problem or if you know the =
solution for this, please reply me. I am stuck in this problem...
(If you want to see the .java file I will send it to you.)

Thanks and best regards,
Ranjith

------=_NextPart_000_00B9_01C4DC65.3EF41E10
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Dear Friends,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have written a java class to parse =
XML files=20
using SAX (extending DefaultHandler). These xml files are generated from =
a=20
database, and jsp is written and deployed in oc4j(same as Tomcat). =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>For some files only the following error =
comes... I=20
checked xml files and no difference between xml's that are working fine =
and=20
giving errors. all xml's are well formed. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This is the error</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The element type "br" must be =
terminated by the=20
matching end-tag "&lt;/br&gt;".</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>org.xml.sax.SAXException: Stopping =
after fatal=20
error: The element type "br" must be terminated by the matching end-tag=20
"&lt;/br&gt;".</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>But no br tag in the xml =
file...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If any of you have experienced this =
kind=20
of&nbsp;problem or if you know the solution for this, please reply me. I =
am=20
stuck in this problem...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>(If you want to see the .java file I =
will send it=20
to you.)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks and best regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Ranjith</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_00B9_01C4DC65.3EF41E10--