1 / 18

Introduction to XML Schemas using eXcelon Stylus Studio

Learn how to use XML schema language to specify the structure of XML documents using eXcelon Stylus Studio. This tutorial covers complex types, keys, and the process of creating schemas.

saechao
Download Presentation

Introduction to XML Schemas using eXcelon Stylus Studio

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to XML Schemasusing eXcelon Stylus Studio • XML schema language is a standard for specifying the structure of XML documents • Uses the same syntax as XML documents • Complex types correspond to table names • Keys are specified using xsd:unique, xsd:key, and xsd:keyref

  2. Stylus Studio – Getting Started • Opening a Schema: • Click on the folder • - Choose an .xsd file

  3. Stylus Studio – Getting Started

  4. Stylus Studio – Getting Started • Open a new XML Schema • The opening page: You can type the schema here…. Or, there is an easier way…

  5. Stylus Studio – Getting Started • Open a new XML Schema • The opening page: Switch to the diagram view using the tabs at the bottom

  6. Stylus Studio – Getting Started • Diagram View Click on “New Element Definition” to create the element ‘company’ as pictured on page 850 of your text, Figure 26.5.

  7. Stylus Studio – Getting Started • Diagram View Type ‘company’ in the name box

  8. Stylus Studio – Getting Started • Before creating the sequence you need to define the complex types Use New Complex Type button to create Department Type

  9. Stylus Studio – Getting Started • Create a sequence for Department type Right click to get menu

  10. Stylus Studio – Getting Started • Create element departmentName Right click to “Add Child” – “Element” Specify data type, min and max occurrences

  11. Stylus Studio – Getting Started • Specify data type for departmentName You may specify min and max occurrences; use the default (1,1) in this case. Type in data type or use pull down menu to verify accurate naming.

  12. Stylus Studio – Getting Started Now Department is visible in the pull down menu for Data Type • Create element departmentName

  13. Stylus Studio – Getting Started • Validate your document as you go! Validate Button

  14. Stylus Studio – Getting Started • Check your Schema against the text! Use indent button to format text Text View

  15. Stylus Studio – Getting Started • Adding a key or unique name Click on id button and choose unique, key, or keyref from pull down menu Tree View

  16. Stylus Studio – Getting Started Click New Selector key to create the selector, or field, xpath.

  17. Stylus Studio – Getting Started XPath is specified here

  18. Stylus Studio – Getting Started Next Step: Try entering the rest of the information yourself!!!

More Related