Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 Stephen
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: Thu Oct 30 12:29:21 GMT 2014

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

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