|
Home > Online Product Documentation > Table of Contents > Defining Groups of Elements in XML Schemas - Diagram View Defining Groups of Elements in XML Schemas - Diagram ViewTo define a group of elements:
1. Define the elements that you want to be in the group. See
Defining Elements and Attributes in XML Schemas.
2. Right-click the
schema node
3. In the shortcut menu, select
Add >
Group.
Alternatives: This operation is also available from the
XMLSchema >
Diagram >
Add > Group menu and from the
Add button
The new group 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 group are displayed in the Properties window.
4. Specify the group name in the
Name property in the
Properties window.
5. Right-click the new group.
6. In the shortcut menu, select
Add > and then select the modifier for the group of elements -
All,
Choice, or
Sequence. In the
Properties window, click the fields for the
Min Occur. and
Max Occur. properties to specify their values. These properties determine how often the group of the elements with the selected modifier can appear.
7. Drag the elements defined in
step 1 and drop them on the
all,
choice, or
sequence modifier created in
step 6.
AlternativeIf you prefer, you can create the element group first, define the modifier for the group elements, and then add new elements to the group by right-clicking on the modifier and selecting Add > Element. If you do this, you must then define each of the elements you added to the group. |
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.
Key Benefits of DataDirect XML Converters
Learn how DataDirect XML Converters were created to maximize XML developer productivity, push innovation, and provide unquestioned value.
Web Service Servers
Stylus Studio's Web Services tools support development and testing of Web service applications on the industry's leading Web Service Servers including Apache AXIS, Mirosoft SOAP Client Toolkit and Microsoft .NET Server.
Introduction to the XQuery Mapper
This free online video demonstration covers Stylus Studio's synchronized XQuery editing and mapping tool which allows you to create any XQuery expression, either manually using Stylus Studio's XQuery editor.


