YouTip LogoYouTip

El Any

XML Schema any Element

XML Schema any Element

β€”

XML Schema Tutorial

XML Schema TutorialIntroduction to XML SchemasWhy Use XML Schema?How to Use XML SchemaXML schema ElementXSD Simple ElementsXML Schema AttributesXML Schema Restrictions / FacetsXML Schema Complex ElementsXML Schema Complex Empty ElementsXML Schema Complex Types – Elements OnlyXML Schema Complex Elements – Text OnlyXML Schema Complex Types – Mixed ContentXML Schema IndicatorsXML Schema any ElementXML Schema anyAttribute ElementXML Schema Element SubstitutionXML Schema ExamplesXML Schema String Data TypesXML Schema Date/Time Data TypesXML Schema Numeric Data TypesXML Schema Miscellaneous Data TypesXML EditorsXML Schema SummaryXML Schema Reference Manual

XML Schema Summary

XML Schema anyAttribute Element

Deep Dive

Programming

Development Tools

Web Service

Scripting

Computer Science

Scripting Languages

Software

Web Services

Web Design and Development

Search

XML Schema any Element


Image 3: XML Schema Reference Manual Complete XML Schema Reference Manual


Definition and Usage

The any element enables authors to extend XML documents with elements not specified by the schema.

Element Information

  • Parent elements: choice, sequence

Syntax

<any
 id=ID
 maxOccurs=nonNegativeInteger|unbounded
 minOccurs=nonNegativeInteger
 namespace=namespace
 processContents=lax|skip|strict
 _any attributes_
>
 (annotation?)
</any>

(The ? symbol indicates that the element can appear zero or one time within any element.)

Attribute Description
id Optional. Specifies a unique ID for the element.
maxOccurs Optional. Specifies the maximum number of times the any element can occur in the parent element. The value can be any integer >= 0. To make the any group optional, set this attribute to zero. Default value 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 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:
  • ##any - Elements from any namespace may appear (default).
  • ##other - Elements from any namespace other than the target namespace of the parent of this element may appear.
  • ##local - Elements not qualified by a namespace may appear.
  • ##targetNamespace - Elements from the target namespace of the parent element containing this element may appear.
← El AttributegroupEl Annotation β†’