Share on Google+Share on Google+

Fixed Values

Advertisement
If you want to supply any fixed value to the element then "fixed" attribute of the element can be used.

Fixed Values

If you want to supply any fixed value to the element then "fixed" attribute of the element can be used. This value is also assigned automatically but is fixed and can not be changed. Whenever the element is used in the document it has its fixed value and user can not provide any other value.

For example, "minTimes" is the element which is of integer type and its default value is 3.
<xs:element name="minTimes" type="xs:integer" fixed="3"/>

Advertisements

Posted on: November 22, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.