Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » test
test [message #598851] Wed, 18 October 2006 20:45
donghua deng is currently offline donghua deng
Messages: 34
Registered: July 2009
Member
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!!!
Previous Topic:change parser
Next Topic:Copy a new local element into another schema
Goto Forum:
  


Current Time: Thu Aug 21 08:06:09 EDT 2014

Powered by FUDForum. Page generated in 0.03705 seconds