<xsd:element name="elementA"> <xsd:complexType> <xsd:choice> 2008/6/22 Arshad Noor <arshad.noor@strongauth.com>: > > How is it possible to define an XSD to allow an element to > either contain custom sub-elements, or a fixed string? > > For example, I would like to be able to do the following: > > <ElementA> > <ElementB> > <ElementC>Some value</ElementC> > <ElementD>Another value</ElementD> > </ElementB> > </ElementA> > > or > > <ElementA> > <ElementB>Any</ElementB> > </ElementA> > > I'm not sure how to use <xsd:choice> to define this? Thanks > for any suggestions. > > Arshad Noor > StrongAuth, Inc. > > >Received on Monday, 23 June 2008 15:20:01 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 16 March 2009 11:13:41 GMT