Jeffy, this is a bug in the Beta 4 release that has since been fixed.
You'll need to download the CVS source and rebuild by following the
instructions at http://www.jdom.org/downloads/source.html.
Just curious, are you on a Windows platform? I got this same error when I
first downloaded to my Windows box.
-Kirstan
---------------------------------------------------------
Mr. Kirstan Vandersluis
X-Aware, Inc. (www.XAware.com)
E-mail: kirstan at xaware.com
Phone/Pager: (719) 930-6024
----- Original Message -----
From: "Rajan, Jeffy" <jeffy_rajan at merck.com>
To: <jdom-interest at jdom.org>
Sent: Thursday, August 17, 2000 2:31 PM
Subject: [jdom-interest] StringIndexOutOfBoundsException
Hi
I am trying to run SAXBuilderDemo and I get StringIndexOutOfBoundsException
: String index out of range :0
Document doc = builder.build(new File("contents.xml")); I am pretty sure I
am getting an exception on this code.
The complete exception is as follows:
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:834)
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 SAXBuilderDemo.testBuilder(SAXBuilderDemo.java:29)
at SAXBuilderDemo.main(SAXBuilderDemo.java:53)
at java.lang.reflect.Method.invoke(Native Method)
at com.borland.jbuilder.util.BootStrap.invokeMain(Unknown Source)
at com.borland.jbuilder.util.BootStrap.main(Unknown Source)
My Jbuilder lib points C:\jr\jdom\build\jdom-b4.jar
C:\jr\jdom\lib\xerces.jar;C:\jr\jdom\lib\ant.jar
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com