Prev Next

Any

An «XSDany» stereotyped Class allows a Complex Type Class to contain elements that are not specified in the Schema Package. You can create it by dragging the Any icon from the XML Schema Toolbox and dropping it directly onto a diagram.

Toolbox Icon

Access

To display the 'XSD any Properties' dialog for the selected «XSDany» stereotyped Class, use one of the methods outlined here.

Ribbon

Design > Element > Properties > Properties

Context Menu

Right-click on «XSDany» stereotyped Class | Properties

Keyboard Shortcuts

Alt+Enter

Other

Double-click on «XSDany» stereotyped Class, or

Drag icon from toolbox onto diagram (this creates a new «XSDany» stereotyped Class)

Define Properties

Field/Button

Action

See also

Name

If you do not want to use the default name of the Any element, overtype it with another name.

Namespace

(Optional) Type the namespace to contain the elements that can be used in the Complex Type.

Complex Type

ProcessContents

(Optional) Click on the drop-down arrow and select the value that defines how the XML Parser should validate these elements:

  • lax - to attempt to validate the elements against their Schema; no error is flagged when the Schema cannot be obtained
  • skip - to skip validating the elements
  • strict - to validate the elements against their Schema and flag an error if the Schema is unobtainable

Annotation

(Optional) Type any notes you need for this element.

OK

Click on this button to save the 'Any' element data entered and close the XSD Any 'Properties' dialog.

Cancel

Click on this button to discard the Any element data entered and close the XSD group 'Properties' dialog.

Help

Click on this button to display this Help topic.

UML

This button is displayed when you are editing existing «XSDany» element information.

Click on the button to open the UML element 'Properties' dialog for the Any Class.

Properties

Notes

  • An Any Class:
  • Cannot contain any UML Attributes or child XSD Classes
  • Cannot be the child of any XSD Class
  • Cannot be the target of a Generalization connector
  • Cannot be the source of an Association or Generalization connector
  • Can be the target of Association connectors from Complex Types, Groups and Model Groups
  • Must be the target of at least one incoming Association connector

Learn more