Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Removing components from an XML schema
Removing components from an XML schema [message #575859] Tue, 12 August 2003 14:39
Hayden Marchant is currently offline Hayden MarchantFriend
Messages: 90
Registered: July 2009
Member
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?

Thanks,
Hayden Marchant,
Unicorn Solutions Inc.
Previous Topic:HexBinary Type Validation bug
Next Topic:Performance Improvements in loading xsd resource
Goto Forum:
  


Current Time: Fri Apr 26 17:12:58 GMT 2024

Powered by FUDForum. Page generated in 0.03182 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top