xml spy tutorial

Download XML Spy Tutorial

Post on 28-Nov-2014

99 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

All rights reserved. No parts of this work may be reproduced in any form or by any means- graphic, electronic, or mechanical, including photocopying, recording, taping, orinformation storage and retrieval systems - without the written permission of the publisher.Products that are referred to in this document may be either trademarks and/or registeredtrademarks of the respective owners. The publisher and the author make no claim tothese trademarks.While every precaution has been taken in the preparation of this document, the publisherand the author assume no responsibility for errors or omissions, or for damages resultingfrom the use of information contained in this document or from the use of programs andsource code that may accompany it. n no event shall the publisher and the author beliable for any loss of profit or any other commercial damage caused or alleged to havebeen caused directly or indirectly by this document.Published: 2011 2011 Altova GmbH1 Altova XMLSpy 2011 Tutorial2.1 ...................................................................................................... 4 Creating a New XML Schema File 2.2 ...................................................................................................... 7 DeIining Namespaces 2.3 ...................................................................................................... 8 DeIining a Content Model 2.4 ...................................................................................................... 12 Adding Elements with Drag-and-Drop 2.5 ...................................................................................................... 13 ConIiguring the Content Model View 2.6 ...................................................................................................... 15 Completing the Basic Schema 3.1 ...................................................................................................... 19 Working with Complex Types and Simple Types 3.2 ...................................................................................................... 27 ReIerencing Global Elements 3.3 ...................................................................................................... 29 Attributes and Attribute Enumerations 4.1 ...................................................................................................... 33 Schema Navigation 4.2 ...................................................................................................... 35 Schema Documentation 5.1 ...................................................................................................... 40 Creating a New XML File 5.2 ...................................................................................................... 42 SpeciIying the Type oI an Element 5.3 ...................................................................................................... 44 Entering Data in Grid View 5.4 ...................................................................................................... 45 Entering Data in Text View 5.5 ...................................................................................................... 49 Validating the Document 5.6 ...................................................................................................... 53 Adding Elements and Attributes 5.7 ...................................................................................................... 55 Editing in Database/Table View 5.8 ...................................................................................................... 59 ModiIying the Schema 6.1 ...................................................................................................... 62 Assigning an XSLT File 6.2 ...................................................................................................... 63 TransIorming the XML File 6.3 ...................................................................................................... 64 ModiIying the XSL File 7.1 ...................................................................................................... 67 BeneIits oI Projects 7.2 ...................................................................................................... 68 Building a Project Altova XMLSpy 2011 Tutorial 2 2011 Altova GmbH XMLSpy TutorialAltova XMLSpy 2011 TutorialThis tutorial provides an overview of XML and takes you through a number of key XML tasks. nthe process you will learn how to use some of XMLSpy's most powerful features.The tutorial is divided into the following parts: Creating an XML Schema. You will learn how to create an XML Schema in XMLSpy'sintuitive Schema View, how to create complex content models using drag-and-dropmechanisms, and how to configure Schema View. Using Schema View features to create complex and simple types, global elementreferences, and attribute enumerations. Learning how to navigate schemas in Schema View, and how to generatedocumentation of schemas. Creating an XML document. You will learn how to assign a schema for an XMLdocument, edit an XML document in Grid View and Text View, and validate XMLdocuments using XMLSpy's built-in validator. Transforming an XML file using an XSLT stylesheet. This involves assigning an XSLTfile and carrying out the transformation using XMLSpy's built-in XSLT engines. Working with XMLSpy projects, which enable you to easily organize your XMLdocuments.This tutorial assumes that you have successfully installed XMLSpy on your computer andreceived a free evaluation key-code, or are a registered user. The evaluation version of XMLSpy is fully functional but limited to a 30-day period. You can request a regular license fromour secure web server or through any one of our resellers.The tutorial files are available in the application folder:..\um-nr- -nJ -rrLnj-\

Recommended

View more >