Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Choice within a sequence
Choice within a sequence [message #598460] Wed, 26 July 2006 15:58
Stuart Stephen is currently offline Stuart StephenFriend
Messages: 22
Registered: July 2009
Junior Member
Hi,

I am trying to work out how I can use emf xsd to create the following
snippet of XML. I just cannot work it out at the moment.

<xs:element name="itemName">
<xs:complexType>
<xs:sequence>
<xs:element name="ref"/>
<xs:choice>
<xs:element name="a"/>
<xs:element name="b"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>

Everything is fine until I try to create choice part. How can I add a
choice to the sequence using the Java API?

Thanks,
Stuart
Previous Topic:how to create a xml schema for ecore metamodel
Next Topic:Choice within a sequence
Goto Forum:
  


Current Time: Wed Apr 24 20:38:25 GMT 2024

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

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

Back to the top