• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error while parsing the EMPTY elements with the xerces parser

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic