XML parsing without startelement
- From: "An Ony" <dontknow@xxxxxxxxxxxxx>
- Date: Mon, 1 Aug 2005 22:57:00 +0200
Hi,
I'm looking at the examples on http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/sax/2a_echo.html
I want to parse an XML file that has just events, like this:
==>start of file
<event type="1"/>
<event type="2"/>
<method type="warning"/>
<===end of file
so there are no <start> and </start> -tags.
Using the examples on that java site I get the following fatal error:
org.xml.sax.SAXParseException: Illegal character at end of document, <.
at org.apache.crimson.parser.Parser2.fatal(Unknown Source)
at org.apache.crimson.parser.Parser2.fatal(Unknown Source)
at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
at org.apache.crimson.parser.Parser2.parse(Unknown Source)
at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
It should be possible, right?
.
- Follow-Ups:
- Re: XML parsing without startelement
- From: Silvio Bierman
- Re: XML parsing without startelement
- Prev by Date: Re: Double: 2 Decimal points
- Next by Date: tomcat as a service on xp?
- Previous by thread: Re: Double: 2 Decimal points
- Next by thread: Re: XML parsing without startelement
- Index(es):
Relevant Pages
|
|