test [message #598851] |
Thu, 19 October 2006 00:45 |
Eclipse User |
|
|
|
For some reason, I want to change an element (that refers to a global
element) to be a local element.
currentElem refers to a global element,
currentElem.getXSDParticleContainer() will get the XSDParticle for
"currentElem".
So first I want to clone this element (how can I change it to be local
element?) , and then replace the "currentElem" with the new cloned one.
How can I do this? Something like below won't work?
XSDElementDeclaration clonedXSDElem = (XSDElementDeclaration)
currentElem.cloneConcreteComponent(true, false);
currentElem.getXSDParticleContainer().setContent(clonedXSDEl em);
Thanks a lot!!!
|
|
|
Powered by
FUDForum. Page generated in 0.03497 seconds