top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How can child elements be specified upon using a sequence compositor?

0 votes
386 views
How can child elements be specified upon using a sequence compositor?
posted Jan 2, 2018 by Latha

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

When a sequence compositor is used the child elements can be specified in either of the two ways:

ref attribute : The ref attribute which will contain the value of the attribute which will be equal to the value of the name attribute in every child elements element declaration. This attribute should always refer to an actual element declaration.

For Example:

<xsd:complexType>
<xsd:sequence>
<xsd:element ref=”title”/>
</xsd:sequence>
</xsd:complexType>

name attribute : This attribute is used by specifying a value equal to the child elements name and with it the type attribute is specified as well. The type attribute would contain the user defined complex type.

For Example:

<xsd:element name=”book” type=”bookType”/>
answer Jan 2, 2018 by Shivaranjini
...