M
mavis
I am using eclipse xsd packages to access xsd.
What I am trying to do is: I have an element e1 (within a particle
"p1") that refers to a global element e2, and then I want to make a
copy of the global element e2 and add the copy to be a local element of
"p1".
The problem is I can clone this global element e2, but i cannot add it
into particle "p1". How can I replace the element e1 with the copy of
e2?
I did sth like this:
XSDElementDeclaration clonedXSDElem = (XSDElementDeclaration)
currentElem.cloneConcreteComponent(true, false);
currentElem.getXSDParticleContainer().setContent(clonedXSDElem);
Thanks a lot for your instructions!!
-Mavis....
What I am trying to do is: I have an element e1 (within a particle
"p1") that refers to a global element e2, and then I want to make a
copy of the global element e2 and add the copy to be a local element of
"p1".
The problem is I can clone this global element e2, but i cannot add it
into particle "p1". How can I replace the element e1 with the copy of
e2?
I did sth like this:
XSDElementDeclaration clonedXSDElem = (XSDElementDeclaration)
currentElem.cloneConcreteComponent(true, false);
currentElem.getXSDParticleContainer().setContent(clonedXSDElem);
Thanks a lot for your instructions!!
-Mavis....