You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Steven Maring <St...@trcinc.com> on 2000/06/16 21:15:02 UTC
Bug? ArrayIndexOutOfBoundsException with DTD DocBook XML V4.0
Anybody had any success with parsing DocBook 4.0 xml files?
I'm getting:
java.lang.ArrayIndexOutOfBoundsException: 32
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:834)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:856)
at XMLParse.main(XMLParse.java:21)
Take a simple DocBook example like this:
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN"
"http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd">
<article>
<artheader>
<title>My Article</title>
<author><firstname>Steven</firstname><surname>Maring</surname></author>
</artheader>
<section>
<title>Summary</title>
<para>Foo bar foo bar..</para>
</section>
</article>
and try parsing it like this:
DOMParser parser = new DOMParser();
parser.setFeature("http://xml.org/sax/features/validation", true);
parser.parse( xmlFile );
Document document = parser.getDocument();
Am I missing something?
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
| Steve Maring
| Web Application Engineer
| Technical Resource Connection, Inc.
| smaring@trcinc.com
| 813-891-6084 x4323
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Re: Bug? ArrayIndexOutOfBoundsException with DTD DocBook XML V4.0
Posted by Eric Ye <er...@locus.apache.org>.
Please post the version of Xerces-J you are using.
_____
Eric Ye * IBM, JTC - Silicon Valley * ericye@locus.apache.org
----- Original Message -----
From: "Steven Maring" <St...@trcinc.com>
To: <xe...@xml.apache.org>
Sent: Friday, June 16, 2000 12:15 PM
Subject: Bug? ArrayIndexOutOfBoundsException with DTD DocBook XML V4.0
> Anybody had any success with parsing DocBook 4.0 xml files?
>
> I'm getting:
>
> java.lang.ArrayIndexOutOfBoundsException: 32
> at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:834)
> at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:856)
> at XMLParse.main(XMLParse.java:21)
>
>
> Take a simple DocBook example like this:
>
> <?xml version="1.0"?>
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN"
> "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd">
> <article>
> <artheader>
> <title>My Article</title>
>
<author><firstname>Steven</firstname><surname>Maring</surname></author>
> </artheader>
> <section>
> <title>Summary</title>
> <para>Foo bar foo bar..</para>
> </section>
> </article>
>
>
> and try parsing it like this:
>
> DOMParser parser = new DOMParser();
> parser.setFeature("http://xml.org/sax/features/validation", true);
> parser.parse( xmlFile );
> Document document = parser.getDocument();
>
>
>
> Am I missing something?
>
>
> -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
> | Steve Maring
> | Web Application Engineer
> | Technical Resource Connection, Inc.
> | smaring@trcinc.com
> | 813-891-6084 x4323
> -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
>