Home Tutorial Xml Fixed Values

 
 

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

Related Tags for Fixed Values:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.