Thanks again Michael, you are of cause right, it is the version embedded
in the JDK which is throwing up the error.
org.xml.sax.SAXParseException: XML document structures must start and
end within the same entity.
at
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown
Sourc
Works for me with the current code. Are you sure you were really running
with 2.9.0 (see Endorsed Standards Override Mechanism [1]) when you tried
it and weren't picking up some other copy of Xerces which might be on your
classpath or a copy built into the JDK?
Thanks.
[1] http://xerces.apache.o
Hi Michael,
Thanks for that - however I grabbed the testcase from the jira bug and
ran it against the binary version of xerces 2.9.0 and it still produces
the exception.
Thanks, Brook
Content-type: text/plain; charset=US-ASCII
... and the likely bug is this [1]. Fixed in October 200
... and the likely bug is this [1]. Fixed in October 2004.
[1] http://issues.apache.org/jira/browse/XERCESJ-1016
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]
Michael Glavassevich/Toronto/[EMAIL PROTECTED] wrote on 05/19/2008 12:2
[EMAIL PROTECTED] wrote on 05/19/2008 11:53:06 AM:
> I agree that it sounds like Xerces should
> always be delivering this late PI to the application. Can we come up
> with small testcase that demonstrates a failure to do so?
I vaguely remember fixing a problem like that years ago so it might on
On 5/19/08 10:53 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>> That is not true. The definition of document in the XML 1.1 spec is:
>> ( prolog element Misc* )
>
> Hmmm. You're right; my error. That's true even in 1.0.
>
>
> Tim Bray, in his Annotated XML Specification, said:
>That is not true. The definition of document in the XML 1.1 spec is:
> ( prolog element Misc* )
Hmmm. You're right; my error. That's true even in 1.0.
Tim Bray, in his Annotated XML Specification, said:
"The fact that you're allowed some trailing junk after the root element, I
decid
On 5/19/08 8:22 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>> processing instruction outside the root element (at the very end of the
> document)
>
> By XML's grammar rules, nothing meaningful may follow the root element.
> That includes PIs. Any tool which is processing that PI is actu
> processing instruction outside the root element (at the very end of the
document)
By XML's grammar rules, nothing meaningful may follow the root element.
That includes PIs. Any tool which is processing that PI is actually
behaving incorrectly.
Fix your document design?
___