xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Mazza <grm7...@yahoo.com>
Subject Re: org.xml.sax.SAXException: occured... The element type "br" must be terminated by the matching end-tag "</br>".
Date Tue, 07 Dec 2004 16:12:39 GMT
Ranjith,

Have you tried "process of elimination"?  Just getting
the input file as small as can be to zero/focus in on
the line that is creating the problem?  It may be some
strange character set issue that is causing the
problem.

Also, <br> is an HTML break, which in non-XHTML
doesn't need a <br/>, but your SAX parser will
complain if it doesn't get one.  I wonder if you are
(inadvertently?) feeding your SAX parser an HTML file.
 If so, your HTML will need to be in XHTML format for
whatever you're trying to do to parse correctly.

Glen

--- Ranjith Kodikara <ranjith@dmsswt.com> wrote:

> 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). 
> 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. 
> 
> 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
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message