Home Tutorial Xml Fixed Values

 
 

Share on Google+Share on Google+
Fixed Values
Posted on: November 22, 2010 at 12:00 AM
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"/>

Advertisement

Related Tags for Fixed Values:


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.

Posted on: November 22, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com