Fixed Values


 

Fixed Values

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

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"/>

Ads