|Removing components from an XML schema [message #575859]
||Tue, 12 August 2003 14:39
| Hayden Marchant
Registered: July 2009
I am trying to prune an extremely large xsd by taking off unneeded|
branches of it. The way I am doing this is to load the schema into memory,
and to remove the unwanted objects with the ECoreUtil.remove(EObject obj)
method. I am then writing the new compact schema back to a file.
In a small test case it works great. When I tried it with a real schema (a
set of XML schemas > 700KB), the remove method calls went extremely
slowly. It seems that every time remove is being called, the whole Schema
is being analyzed which is a lengthy process. I have about 2500 items I
need to remove, and each remove is taking about 1 second.
Is there anyway I can turn off the validation process when removing?
Unicorn Solutions Inc.
Powered by FUDForum
. Page generated in 0.01907 seconds