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"/>|
Posted on: November 22, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles