| Workshops --> XML --> Demo --> schema9.html |
|---|
![]() |
|
Here are some other ways to limit and specify content of elements using simple types
The generic form is:
An example is:
This is a valid example of content in the XML file
maxLength defines the maximum number of characters that can be used in an element
minExclusive defines a range of acceptable values greater than but not equal to the specified value
precision and scale to limit the number of digits in an integer
precision sets the maximum number of digits in the integer
scale sets the maximum number of digits to the right of the decimal point
The generic form is:
This is a valid example of content in the XML file
|
||||||||||||||||||||||||
| Page by Howard Rosenbaum | |
| Find me at hrosenba@indiana.edu | You are here: http://www.slis.indiana.edu/hrosenba/www/Workshops/XML/Demo/schema9.html |