Adding a Local complexType Component to an XML Schema File

See Also

You use a complexType to define a complex type. A complexType component can contain other components and/or attributes. The parent component of a local complexType is an element component.

To add a local complexType component while creating an element component:

  1. In the IDE, open the schema file where you want to add the local complexType component.
  2. In the Schema view, right-click the root node of the schema and choose Add > Element from the pop-up menu.
    -or-
    In the Schema view, select and right-click the Elements node and choose Add Element from the pop-up menu.
    The Element dialog box opens.
  3. In the Name field, type the name of the global element.
  4. Under Type, select the Inline Complex Type radio button.
  5. Click OK.
    The IDE adds a node for the new element and also creates a local complexType within the new element. The label of the element node is the name you entered in the Name field; the label of the local complexType node is complexType.

To add a local complexType component to an existing element component:

  1. In the IDE, open the schema file where you want to add the complexType component.
  2. In the Schema view, right-click the node of the element component to which you want to add a local complexType component, and choose Customize from the pop-up menu.
    The Element dialog box opens. Depending on the type of element you selected, the title of dialog box may be Local Element Customizer or Global Element Customizer.
  3. Under Type, select the Inline Complex Type radio button.
  4. Click OK.
    The IDE creates a local complexType within the element you selected. The label of the local complexType node is complexType.

To change a local complexType:

  1. Right-click the complexType node and choose Customize from the pop-up menu.
  2. In the Local complexType Customizer dialog box, make your changes.
  3. Click OK.
See Also
Complex Type Dialog Box
Adding a Global complexType Component to an XML Schema File
About XML Schema Tools

Legal Notices