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:
- In the IDE, open the schema file where you want to add the local complexType component.
- 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.
- In the Name field, type the name of the global element.
- Under Type, select the Inline Complex Type radio button.
- 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:
- In the IDE, open the schema file where you want to add the complexType component.
- 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.
- Under Type, select the Inline Complex Type radio button.
- 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:
- Right-click the complexType node and choose Customize from the pop-up menu.
- In the Local complexType Customizer dialog box, make your changes.
- Click OK.
- See Also
- Complex Type Dialog Box
- Adding a Global complexType Component to an XML Schema File
- About XML Schema Tools
Legal Notices