Actually, there isn't any way to replace an already loaded type (by
design, think Java classes). Once you have other types depending on it
and documents validated/typed accordingly, you can't really change the
type without things becoming inconsistent.

What you can do, is create another SchemaTypeLoader with the new
versions of the types and "union" it with the existing one:

XmlBeans.typeLoaderUnion(new SchemaTypeLoader[] {new_TL, existing_TL});

keeping in mind that typeLoaders earlier in the path take precedence.
Then, you load all your documents with this new TL and gradually phase
out the old one.

Radu

On Sat, 2009-02-21 at 12:33 -0500, Andy Putnins wrote:
> Is there some way to remove a schema from a SchemaTypeLoader?
> 
> The situation arises when I need to replace an already loaded schema
> in a running system with a new version that may have added, deleted,
> and moved elements and attributes.
> 
>       - Andy
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to