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
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: Fri Dec 19 08:57:20 GMT 2014

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

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