Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Moving components from one XSD schema to another
Moving components from one XSD schema to another [message #575033] Thu, 31 July 2003 09:48
Hayden Marchant is currently offline Hayden MarchantFriend
Messages: 90
Registered: July 2009
Member
I need to take a pre-existing XSD, and prune off lots of bits and pieces
that are not relevant for a certain flavor of XML that needs to be
validated. The reason this needs to be done is that the sheer size of the
original XSD (>800kb) makes it unfeasible to validate against.

I have already figured out how to remove parts of a schema (using
ECoreUtil.remove() ), however I am not sure how to re-write the changed
schema back to a file. The re-write I need to do is a bit different to a
plain old write. If the schema I am working on includes/imports another
schema, I also need to write the updated reference schema.

I would very much like to be able to merge the references schemas into a
single smaller main schema. I need to be able to tell all of the
XSDConcreteComponents that they know belong to a different schema, without
breaking the references to them. I also need to update the underlying DOM
representation of these refered schemas.

How do I go about this merging task? What methods do I need to call on
these referred components?

Thanks,
Hayden Marchant
Previous Topic:JAXB
Next Topic:Moving components from one XSD schema to another
Goto Forum:
  


Current Time: Sun Dec 21 20:24:02 GMT 2014

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

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