Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » test
test [message #598851] Thu, 19 October 2006 00:45
donghua deng is currently offline donghua dengFriend
Messages: 34
Registered: July 2009
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

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 Jun 21 12:45:56 GMT 2018

Powered by FUDForum. Page generated in 0.01492 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top