j-users@xerces.apache.org
[Top] [All Lists]

Re: Bogus schema generated after multiple invocations of SchemaFactory.n

Subject: Re: Bogus schema generated after multiple invocations of SchemaFactory.newInstanceW3C_...).newSchema(Source[] ...
From: Michael Glavassevich
Date: Mon, 18 Sep 2006 00:23:29 -0400
Ron Gavlin <rgavlin@xxxxxxxxx> wrote on 09/17/2006 11:31:34 PM:

> Michael,
> 
> Thanks for the reply. 
> 
> I've included my complete test program below. The test only works 
> with the Xerces XMLSchemaFactory if I clone the schema document 
> element each time before it is wrapped by a DOMSource. Is this the 
> expected behavior? I find it interesting that the JDK 1.5 
> SchemaFactory does not require the schema document element to be 
> cloned? Can you explain the discrepancy?

Are you using redefine in your schema? If so the schema loader is probably 
mutating the input DOM. That's a bug which hasn't been fixed yet.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@xxxxxxxxxx
E-mail: mrglavas@xxxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>