M
mavis
I am using eclipse XSD packages to access schemas.
I have two versions of an schema (newSchema and oldSchema) that are
almost the same, but some local elements in "newSchema" may need to
imported into "oldSchema". So I will compare these two schemas and then
import those new local elements from new schema into the old one.
for example:
oldSchema: A --- B
|- C
|- D
newSchema: A --- B
|- C
|- D
|- E
For new global elements, I guess it is easy to add them into oldSchema.
But for new local elements (like E in the above example), It is hard to
add them into the corresponding positions in oldSchema (as the child
node of A).
How Can I record the container particle of newSchema and then locate
the corresponding particle in the oldSchema?
Before I tried Xerces xsd, I can use XPath to point to any position of
the DOM tree. Maybe I can do the same thing here? I can get the XPath
of each elements easily..
Thanks a lot for any instructions!
-Mavis
I have two versions of an schema (newSchema and oldSchema) that are
almost the same, but some local elements in "newSchema" may need to
imported into "oldSchema". So I will compare these two schemas and then
import those new local elements from new schema into the old one.
for example:
oldSchema: A --- B
|- C
|- D
newSchema: A --- B
|- C
|- D
|- E
For new global elements, I guess it is easy to add them into oldSchema.
But for new local elements (like E in the above example), It is hard to
add them into the corresponding positions in oldSchema (as the child
node of A).
How Can I record the container particle of newSchema and then locate
the corresponding particle in the oldSchema?
Before I tried Xerces xsd, I can use XPath to point to any position of
the DOM tree. Maybe I can do the same thing here? I can get the XPath
of each elements easily..
Thanks a lot for any instructions!
-Mavis