|
Home >Online Product Documentation >Table of Contents >Defining complexTypes That Mix Data and Elements Defining complexTypes That Mix Data and ElementsSuppose you want to define a complexType that mixes elements and data. For example, you have an XML document with contents such as the following:
The This section describes how to achieve this using both the Diagram and Tree views. Diagram ViewTo define a complex type that mixes data and elements:
1. Create a complexType as described in Defining complexTypes That Contain Elements and Attributes - Diagram View.
2. In the Properties window, click the Mixed field.
3. In the drop-down menu that appears, click true.
Tree ViewIn the Tree view, to define a complex type that mixes data and elements:
1. Click the Schema node.
2. In the left tool bar, click New complexType
3. Type a name for this new complexType and press Enter.
4. In the Properties window, double-click the Mixed field.
5. Double-click true.
6. In the left tool bar, click New Model Group
7. Double-click the modifier you want. For a description of the modifiers, see Model Group Properties in XML Schemas. For the rest of this procedure, assume that you double-click the sequence modifier. By default, the elements that are children of this node each appear exactly once. If you want an element to be optional, or if you want an element to appear more than once, specify appropriate values for the properties for minimum occurrence and maximum occurrence.
8. For each element that you want this complexType to contain:
a. In the left tool bar, click New Element Definition
b. Type a name for the new element and press Enter. Stylus Studio displays a pop-up menu that lists the built-in simpleTypes and any types already defined in the schema.
c. Double-click the type for the new element.
|
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.
Using DataDirect XQuery with Stylus Studio
Learn how to query any relational database using XQuery and the XQuery API for Java using DataDirect XQuery, an embeddable Java component, and Stylus Studio the world's leading XML IDE.
Investments and Financial Companies That Use Stylus Studio
Stylus Studio provides XML tools & components to leading investment and financial companies! See which top investment and financial companies are banking on Stylus Studio 2006 to simplify their dollars and cents.
Java XML Parser
Stylus Studio's support for Java XML Parser is able to Validate XML Using any Java XML Parser, Edit, Debug, Profile and Map XSLT using any Java XSLT Processor, Create PDF files Using Apache FOP, hand have Support for Microsoft XML Parsers as well.


