[jdom-interest] String Index error

Arco van den Heuvel aheuvel at communicopia.com
Wed Jul 26 12:23:37 PDT 2000

Just downloaded the beta-4 release of JDOM. It certainly looks a like a
better way to access XML data.

Encountered a SAXException of 'String index out of range: 0' while trying to
parse a simple xml file with java.org.examples.testSuite.TestChildren.

org.xml.sax.SAXException: String index out of range: 0
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:878)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:218)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:284)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:265)
	at org.jdom.examples.testSuite.TestChildren.test(TestChildren.java:98)
	at org.jdom.examples.testSuite.TestChildren.main(TestChildren.java:133)

  <?xml version="1.0"?>
  <!DOCTYPE graph-config>

Is it either a problem with the xml file or the SAXBuilder.
Is there a work around for this?

Arco van den Heuvel

More information about the jdom-interest mailing list