What has happend? How to solve this???
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   blackzebra_zz
Posted On:   Monday, September 24, 2001 06:54 AM

when trying to run an example from xerces page i got this problem, Example1 SAX Events: org.xml.sax.SAXException: System property org.xml.sax.driver not specified at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory .java:90) at Example1.main(Example1.java:72) what should i do to this??? can someone enlighten me???? Another problem is that when i parse a incomplete XML document, the system give me this error: org.xml.sax.SAXParseException: End of entity not allowed; an end tag is missing. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3121) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3109)    More>>


when trying to run an example from xerces page i got this problem,


Example1 SAX Events:
org.xml.sax.SAXException: System property org.xml.sax.driver not specified
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory
.java:90)
at Example1.main(Example1.java:72)

what should i do to this??? can someone enlighten me????




Another problem is that when i parse a incomplete XML document, the system give me this error:


org.xml.sax.SAXParseException: End of entity not allowed; an end tag is missing.

at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3121)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3109)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1826)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1496)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)

at javax.xml.parsers.SAXParser.parse(SAXParser.java:357)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:293)
at Echo.main(Echo.java:48)

how should prevent this?? which mean how can i parse an imcomplete XML document???? pls help this is urgent, thanks.

   <<Less

Re: What has happend? How to solve this???

Posted By:   Bozidar_Dangubic  
Posted On:   Monday, September 24, 2001 07:14 AM

you can solve problem 1 by starting your application as


java -Dorg.xml.sax.driver=fully-qualified-sax-driver-class-name Example1


problem 2 makes no sense. you are saying that you are parsing an incomplete XML file. well, there is your problem! makes sure that it is complete. the problem that parser is reporting is related to the fact that you are closing parent tag before child tag. that is not allowed in XML. for instance, this is illegal:











all children have to close before parent can close, so this is valid:








About | Sitemap | Contact