|Moving components from one XSD schema to another [message #575033]
||Thu, 31 July 2003 09:48
| Hayden Marchant
Registered: July 2009
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?
Powered by FUDForum
. Page generated in 0.08580 seconds