Altova Xmlspy Professional Edition User Manual
Total Page:16
File Type:pdf, Size:1020Kb
User Manual and Programmers' Reference Altova XMLSpy Professional Edition User Manual 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, or information 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 registered trademarks of the respective owners. The publisher and the author make no claim to these trademarks. While every precaution has been taken in the preparation of this document, the publisher and the author assume no responsibility for errors or omissions, or for damages resulting from the use of information contained in this document or from the use of programs and source code that may accompany it. In no event shall the publisher and the author be liable for any loss of profit or any other commercial damage caused or alleged to have been caused directly or indirectly by this document. Published: 2006 © 2006 Altova GmbH Table of Contents Welcome to XMLSpy Professional Edition 3 User Manual 6 1 Introduction 7 1.1 Altova's XML.........................................................................................................................................8 Products 1.2 XMLSpy's.........................................................................................................................................9 main features 1.3 User interface.........................................................................................................................................12 1.3.1 Project Window............................................................................................................................13 1.3.2 Info Window............................................................................................................................13 1.3.3 Main Window............................................................................................................................14 1.3.4 Entry Helpers............................................................................................................................15 1.3.5 Menu Bar............................................................................................................................15 and Toolbar 2 Tutorials 17 2.1 XMLSpy .........................................................................................................................................18Tutorial 2.1.1 The XMLSpy............................................................................................................................18 interface 2.1.2 Creating ............................................................................................................................19a basic XML Schema – Creating............................................................................................................................ a new XML Schema file 20 – Defining............................................................................................................................ namespaces 22 – Defining............................................................................................................................ a content model 23 – Adding............................................................................................................................ elements with drag-and-drop 27 – Configuring............................................................................................................................ the Content Model View 28 – Completing............................................................................................................................ the basic schema 30 2.1.3 Advanced............................................................................................................................33 XML Schema definitions – Working............................................................................................................................ with Complex Types and Simple Types 33 – Referencing............................................................................................................................ global elements 41 – Attributes............................................................................................................................ and attribute enumerations 43 2.1.4 Schema navigation............................................................................................................................46 and documentation – Schema............................................................................................................................ navigation 46 – Schema............................................................................................................................ documentation 48 2.1.5 Creating ............................................................................................................................52an XML document Altova XMLSpy Professional Edition User Manual 1 – Creating............................................................................................................................ a new XML file 53 – Specifying............................................................................................................................ the type of an element 55 – Entering............................................................................................................................ data in Grid View 57 – Entering............................................................................................................................ data in Text View 57 – Validating............................................................................................................................ the document 61 – Appending............................................................................................................................ elements and attributes in Grid View 65 – Editing............................................................................................................................ in Database/Table View 67 – Modifying............................................................................................................................ the schema 71 2.1.6 Using XSLT............................................................................................................................73 to transform XML – Assigning............................................................................................................................ an XSL file 74 – Transforming............................................................................................................................ the XML file 75 – Modifying............................................................................................................................ the XSL file 75 2.1.7 Working ............................................................................................................................76with databases – Exporting............................................................................................................................ XML data to external databases 77 – Importing............................................................................................................................ database data 79 – Creating............................................................................................................................ a database schema 83 Converting....................................................................................................................... a database to an XML schema 84 2.1.8 Project management............................................................................................................................87 – Benefits............................................................................................................................ of projects 87 – Building............................................................................................................................ a project 87 2.1.9 That's it !............................................................................................................................89 2.2 Authentic.........................................................................................................................................90 View Tutorial 2.2.1 Opening ............................................................................................................................90an XML document in Authentic View 2.2.2 Entering ............................................................................................................................91data in Authentic View 2.2.3 Adding document............................................................................................................................92 content and elements 2.2.4 Inserting ............................................................................................................................94an element 2.2.5 Clearing ............................................................................................................................95elements 2.2.6 Entering ............................................................................................................................96attribute values 2.2.7 Adding entities............................................................................................................................97