XML Schema any Element
Complete XML Schema Reference Manual
Definition and Usage
The any element enables authors to extend an XML document with elements not specified by the schema.
Element Information
- Parent elements: choice, sequence
Syntax
id=ID maxOccurs=nonNegativeInteger|unbounded minOccurs=nonNegativeInteger namespace=namespace processContents=lax|skip|strict any attributes (annotation?) (The ? symbol declares that the element can appear zero or one time within any element.) Optional. Specifies the namespace containing the elements that can be used. If no namespace is specified, ##any is the default. If a namespace is specified, it must be one of the following values: Optional. An indicator specifying how an application or XML processor should handle validation of the XML document with respect to the elements specified by the any element. If the processContents attribute is not specified, the default is strict. If processContents is specified, it must be one of the following values: The following example shows a declaration of the "person" element. By using the
property
Description
id
Optional. Specifies a unique ID for the element.
maxOccurs
Optional. Specifies the minimum number of times the any element can appear in the parent element. The value can be an integer greater than or equal to zero. To specify that the any group is optional, set this attribute to zero. The default is 1.
minOccurs
Optional. Specifies the minimum number of times the any element can occur in the parent element. The value can be any number >= 0. Default value is 1
namespace
| | *any attributes* | Optional. Specifies any other attributes with a non-schema namespace. |
Example 1
Complete XML Schema Reference Manual