|
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. |
XML Notepad
XML Notepad simplifies building of XML applications, allowing authors to rapidly build and edit their XML files. With XML Notepad, you can create XML document prototypes quickly, easily, using an intuitive graphical interface.
XSD Documentation Generator
Stylus Studio®'s XSD Editor includes an integrated XSD documentation generator, allowing you to easily publish XML content models defined in XSD in a convenient, HTML format.
Convert CSV to XML
Convert CSV to XML with a handy CSV to XML document wizard that helps you extract data from your CSV files with ease.
Learn XSLT
Free online video demonstrations for learning XSLT and how to design XSLT stylesheets to convert XML to HTML in publishing applications, or how to convert HTML to XML.


