Any Attributes

The Any Attribute check box in the bottom-left corner of the Attributes tab allows you to specify that any attribute of the specified namespaces can be inserted into an element, a complex type or an attribute group declaration. It is only available in a model targeted with XSD.

For example:



Click the Properties tool to display the Any Attribute property sheet. The General tab contains the following properties:

Property

Description

ID

Specifies the ID of the object, which must be unique within the model.

Namespace

Specifies the namespaces containing the attributes that can be used. You can enter a white space delimited list with URI references or choose from:
  • ##any - attributes from any namespace can be used.
  • ##other - attributes from any namespace other than the target namespace of the schema can be used.
  • ##local - attributes that are not qualified with a namespace can be used.
  • ##targetNamespace - attributes from the target namespace of the schema can be used.

Process contents

Specifies how an XML processor should handle validation of XML documents containing the attributes specified by the Any Attribute. You can choose from:
  • Lax - the processor will try to obtain the schema and validate any attribute of the specified namespaces. If the schema cannot be found, no error will occur.
  • Skip - the processor will not try to validate the attributes.
  • Strict - the processor must obtain the schema and validate any attribute of the specified namespaces.