XML Schema anyAttribute Element
Complete XML Schema Reference Manual
Definition and Usage
The anyAttribute element enables authors to extend an XML document with attributes not specified by the schema.
Element Information
- Parent elements: complexType, restriction (both simpleContent and complexContent), extension (both simpleContent and complexContent), attributeGroup
Syntax
id=ID namespace=namespace processContents=lax|skip|strict any attributes (annotation?) (The ? symbol declares that the element can appear zero or one time within the anyAttribute 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. Optional. Specifies any other attributes with a non-schema namespace. The following example shows a declaration for the "person" element. By using the
property
Description
id
Optional. Specifies a unique ID for the element.
namespace
| | *any attributes* |
Example 1
Complete XML Schema Reference Manual