Defining Elements of the Sample complexType in the Diagram View

This topic is part of a sequence that begins with Description of Sample XML Schema.

In the final step of defining bookstoreDiagram.xsd, you define elements that are of the PublicationType complexTypes you defined earlier - book, magazine, and newsletter elements.

To define the book, magazine, and newsletter elements in the sample XML Schema:
1. Right-click the schema node in the diagram.
2. In the shortcut menu that appears, select Add > Element.

Stylus Studio displays a node for the new element in the XML Schema diagram pane. The properties for the new element appear in the Properties window.

3. Type book as the name of the new element and press Enter.
4. In the Properties window, click the Data Type field. Stylus Studio displays a drop-down list of built-in types plus any types you have defined.
5. Click PublicationType.
6. Repeat step 1 through step 5 twice: once to add the magazine element, and once to add the newsletter element.
7. Click Save .

The bookstoreDiagram.xsd document is now complete.

8. Select XMLSchema > Validate Document from the menu to validate the XML Schema document you created.

The validation message appears in the Output window, as shown in Figure 75.

Figure 75. Validation of bookstoreDiagram.xsd

Microsoft XML Tools

Build Microsoft XML applications with Stylus Studio, which includes development support for all Microsoft XML technologies, including MSXML and Microsoft System.XML (Microsoft XML Parsers), SQL Server 2000, SQL Server 2005 (Yukon), and more.

XQuery Blasts off at NASA's Johnson Space Center

This is a short story how DynCorp (CSC) used XQuery at NASA's Johnson Space Center to Simplify XML Data Access and Integration

Building Web Services With Stylus Studio

This video demonstration shows you how to use Stylus Studio's Web Service call composer to locate a WSDL file on the Internet, inspect, create SOAP envelope, invoke and inspect Web service data.

Mail, Package & Freight Delivery

Want to know what mail, package & freight delivery companies are shipping away there XML woes? Now you can! Check out these top mail, package & freight delivery companies that are packaged with the power of Stylus Studio.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member