[jdom-interest] SAXBulder Problem

Alex Rosen arosen at silverstream.com
Wed Jul 24 10:22:39 PDT 2002


Sounds like you're passing an HTML stream into SAXBuilder, not an XML
stream. It's seeing an HTML <META> tag and choking (since this tag doesn't
have an end tag </META> in HTML). You'll have to figure out why the input
stream doesn't contain what you're expecting it to contain.

Alex

-----Original Message-----
From: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org]On
Behalf Of Mark Hortman
Sent: Wednesday, July 24, 2002 9:56 AM
To: 'jdom-interest at jdom.org'
Subject: [jdom-interest] SAXBulder Problem


I am getting the following error.

org.jdom.JDOMException: Error on line 4: The element type "META" must be
terminated by the matching end-tag "</META>".
            at org.jdom.input.SAXBuilder.build(SAXBuilder.java:300)
            at org.jdom.input.SAXBuilder.build(SAXBuilder.java:650)
            at com.jcafeinc.builder.JCFrame.acceptCSF(JCFrame.java:505)

I DON'T HAVE A META TAG IN MY XML FILE AT ALL.

I am running in an applet, and have xerces.jar in my list of jars.

I am calling SAXBulder.build with an bufferedReader, which is coming into an
applet from a server.

I am using jdom-dev.jar from another project, and appears to be from a June
20, 2002 nightly build of JDom the best I can tell.

Question 1,  When I look at SAXBulder.java, I don't see line 650 as an
executable line of code.
      When I go back many versions of SAXBuilder I still don't see line 650
inside of build, what is the deal?

Question 2,  What could be causing this?  My applet appears to work on some
machines and some servers, like my development machine,
                   but not others.




More information about the jdom-interest mailing list