Adding attributes
-
The tag element comes into play
Every
elementRule
must have a tag
element.
-
Empty tag=no attributes
<tag name="myElement"/>
-
Element with simple attributes
<tag name="myElement">
<attribute name="attribute1" required="true" type="string" />
<attribute name="attribute2" type="string" />
</tag>
-
Element with typed attributes
<tag name="myElement">
<attribute name="attribute1" required="true" type="string">
<enumeration value="a"/>
<enumeration value="b"/>
</attribute>
<attribute name="attribute2" type="integer">
<minInclusive value="1"/>
</attribute>
</tag>
Previous Page <
TOC
> Next Page