Wildcard elements limitations

The schema element xs:any has Namespace and processContents attributes.

Namespace

This attribute is used to specify the namespaces containing the elements that are used as replacement elements. Mapper assumes that elements from any namespace are allowed. This is the default behavior for namespaces.

processContents

This attribute is used to specify how the XML processor, which receives the output document, must use validation against the replacement elements. Mapper assumes that the XML processor must obtain schemas for the used namespaces and validate the replacement elements. This is the default behavior for processContents.

This XML code shows how to write the element xs:any :

<xs:any namespace="##any" processContents="strict"/>

For the element xs:any, the attributes minOccurs and maxOccurs are reflected when showing wildcard elements in the input and output document trees.