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:36:15 UTC
RE: Bug? ArrayIndexOutOfBoundsException with DTD DocBook XML V4.
0
I assumed it was 1.1.1, but it wasn't. It was 1.1.0. I changed to 1.1.1
and it worked.
Sorry for the confusion! :-)
-----Original Message-----
From: Eric Ye [mailto:ericye@locus.apache.org]
Sent: Friday, June 16, 2000 3:29 PM
To: xerces-j-dev@xml.apache.org
Subject: Re: Bug? ArrayIndexOutOfBoundsException with DTD DocBook XML
V4.0
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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org