Defining attributeGroups in XML Schemas - Diagram View

You define attributeGroups in much the same way that you define element groups - by creating the attributes you want to add to the attributeGroup, creating the attributeGroup, and then dragging-and-dropping the attributes in the attributeGroup. As with element groups, you can define the attributeGroup first and then add new attributes to it, if you prefer. The following procedure describes how to create an attributeGroup by creating the attributes at the same time you create the attributeGroup.

To define an attributeGroup:
1. Right-click the schema node .
2. In the shortcut menu, select Add > AttributeGroup.

Alternatives: This operation is also available from the XMLSchema > Diagram > Add > AttributeGroup menu and from the Add button .

The new attributeGroup is added to the XML Schema. It is displayed in the diagram and in the text pane (if you have it open). The properties for the new attributeGroup are displayed in the Properties window.

3. Right-click the new attributeGroup.
4. In the shortcut menu that appears, select Add > Attribute.

The new attribute is added to the attributeGroup.

Figure 225. attributeGroup with New Attribute

5. Make sure the new attribute is selected. In the Properties window, click the Data Type field.
6. Enter or select the type of the attribute.
7. Repeat step 3 through step 6 for each attribute that you want to be in the group.

Convert DTD to XSD

learn how to convert DTD to XML Schema

Generating Java Code with Stylus Studio

This is a video tutorial on how to generate Java Code with Stylus Studio

XSV - The XML Schema Validator

XSV is the official reference implementation for the XML Schema language and Stylus Studio is the only XML IDE to provide seamless integration with XSV - the W3C XML Schema Validator. Download Stylus Studio and XSV today.

Whitepaper: FIXML - Working with Complex Message Sets Defined Using XML Schema

The advanced XML Schema handling and presentation capabilities of Stylus Studio have valuable implications for users of industry-specific XML message sets.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member