|
Home > Online Product Documentation > Table of Contents > Defining Elements That Contain Subelements in XML Schemas Defining Elements That Contain Subelements in XML SchemasAn element that contains subelements is a complexType. Consequently, you can define an element that contains subelements in either of the following ways:
To define a complexType that contains elements, see Defining complexTypes That Contain Elements and Attributes - Diagram View or Defining complexTypes That Contain Elements and Attributes - Tree View. Diagram ViewTo define an element and define subelements in the element definition:
1. Right-click the
schema node
2. In the shortcut menu, select
Add >
Element.
Alternatives: This operation is also available from the
XMLSchema >
Diagram >
Add > Element menu and from the
Add button
The new element 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 element are displayed in the Properties window.
3. Right-click the new element and click
QuickEdit. Select one of the following from the
QuickEdit menu:
4. Add subelements to the element you created in
step 3.
Tree ViewIn the Tree view, to define an element and define subelements in the element definition:
1. Click the
Schema node or a
Model Group (
all,
any,
choice,
sequence) node.
2. In the left tool bar, click
New Element Definition
3. Enter the name for your new element. Stylus Studio displays a pop-up menu that lists the built-in simpleTypes and any simple or complexTypes already defined in your schema.
4. Press Enter again. Rather that using a type that is already defined, you want to define a new complexType in the definition of your element. You do not want to assign a type to your new element.
5. In the left tool bar, click
New complexType
6. Enter a name for the new type.
At this point, the procedure for defining a complexType in the definition of an element is the same as defining a complexType as a child of the Schema node. See Defining complexTypes That Contain Elements and Attributes - Tree View. |
DataDirect XML Converters
DataDirect XML Converters are high-performance Java components which provide bi-directional, programmatic access to virtually any data source as XML.
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.
XPath Introduction - Using XPath Queries to Extract Data from XML Documents
The XPath introduction covers how to use XPath code completion, XPath syntax highlighting, support for XPath 2.0 functions and XML namespaces to simplify your next XPath application.
DTD Validator
This page talks about Stylus Studio's DTD Validator it has the ability to specify any third-party XML parsers and validators, real-time syntax checking and DTD validation error reporting, backmapping, integrating third-party DTD validators and more!