This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Error while parsing the EMPTY elements with the xerces parser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Error while parsing the EMPTY elements with the xerces parser" Watch "Error while parsing the EMPTY elements with the xerces parser" New topic
Author

Error while parsing the EMPTY elements with the xerces parser

John
Greenhorn

Joined: Jul 31, 2001
Posts: 2
Hi all...
While I am parsing a xml file which has any elements declared as EMPTY,with the apache's xerces parser,I am getting an exception thrown as below:
org.xml.sax.SAXParseException: The content of element type "titlerow" must match "EMPTY".
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1008)
at org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(XMLValidator.java:1283)
at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:987)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1255)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:380)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
at com.itreya.services.repository.XMLRepositoryParser.parse(XMLRepositoryParser.java:43)
at com.itreya.services.repository.XMLRepositoryHandler.createObjectHierarchy(XMLRepositoryHandler.java:245)
at com.itreya.services.repository.XMLRepositoryHandler.createObjectHierarchy(XMLRepositoryHandler.java:232)
at com.itreya.services.repository.XMLRepositoryHandler.main(XMLRepositoryHandler.java:254)
Here in my xml file I am having an element named titlerow which I declared as EMPTY.
So if anyone out there knows the reason,please help me out.
Thanks in advance,
John
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error while parsing the EMPTY elements with the xerces parser
 
Similar Threads
XML parsers, encoding and byte order marks
Error while parsing XML with PDF attachment
Xerces 1.4.4 with JDK 1.3.1_01 schema validation problem
Parsing a XML file containing japanese characters
XML beans vs Jakarta digester