Altova Xmlspy 2009 User & Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
User Manual and Programmers' Reference Altova XMLSpy 2009 User & Reference 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: 2009 © 2009 Altova GmbH Table of Contents Welcome to XMLSpy 3 User Manual 6 1 Introduction 7 1.1 The Graphical.........................................................................................................................................8 User Interface (GUI) 1.1.1 Main Window............................................................................................................................9 1.1.2 Project Window............................................................................................................................10 1.1.3 Info Window............................................................................................................................12 1.1.4 Entry Helpers............................................................................................................................12 1.1.5 Messages............................................................................................................................13 Window 1.1.6 Menu Bar,............................................................................................................................14 Toolbars, Status Bar 1.2 The Application.........................................................................................................................................15 Environment 1.2.1 Settings and............................................................................................................................15 Customization 1.2.2 Tutorials,............................................................................................................................15 Projects, Examples 1.2.3 XMLSpy............................................................................................................................16 Features and Help, and Altova Products 2 XMLSpy Tutorial 17 2.1 XMLSpy .........................................................................................................................................18Interface 2.2 XML Schemas.........................................................................................................................................19 2.3 XML Documents.........................................................................................................................................21 2.3.1 Creating ............................................................................................................................21a New XML File 2.3.2 Specifying............................................................................................................................23 the Type of an Element 2.3.3 Entering ............................................................................................................................24Data in Text View 2.3.4 Validating............................................................................................................................28 the Document 2.3.5 Adding Elements............................................................................................................................31 and Attributes 2.4 XSLT Transformations.........................................................................................................................................32 2.4.1 Assigning............................................................................................................................32 an XSLT File 2.4.2 Transforming............................................................................................................................33 the XML File 2.4.3 Modifying............................................................................................................................34 the XSL File 2.5 Project Management.........................................................................................................................................36 2.5.1 Benefits ............................................................................................................................36of Projects Altova XMLSpy 2009 1 2.5.2 Building ............................................................................................................................36a Project 2.6 That's It .........................................................................................................................................38 3 Editing Views 39 3.1 Text View.........................................................................................................................................40 3.1.1 Formatting............................................................................................................................40 in Text View 3.1.2 Displaying............................................................................................................................42 the Document 3.1.3 Editing in............................................................................................................................45 Text View 3.1.4 Entry Helpers............................................................................................................................47 in Text View 3.2 Grid View.........................................................................................................................................49 3.2.1 Entry Helpers............................................................................................................................50 in Grid View 3.3 Schema View.........................................................................................................................................52 3.3.1 Schema Overview............................................................................................................................52 3.3.2 Content Model............................................................................................................................56 View 3.3.3 Entry Helpers............................................................................................................................66 in Schema View 3.3.4 Identity Constraints............................................................................................................................70 3.3.5 Smart Restrictions............................................................................................................................74 3.3.6 Back and............................................................................................................................78 Forward: Moving through Positions 3.4 Authentic.........................................................................................................................................80 View 3.4.1 Overview............................................................................................................................80 of the GUI 3.4.2 Authentic............................................................................................................................81 View Toolbar Icons 3.4.3 Authentic............................................................................................................................83 View Main Window 3.4.4 Authentic............................................................................................................................85 View Entry Helpers 3.4.5 Authentic............................................................................................................................89 View Context Menus 3.5 Browser View.........................................................................................................................................91 4 XML 92 4.1 Creating, .........................................................................................................................................93Opening, and Saving XML Documents 4.2 Assigning.........................................................................................................................................95 Schemas and Validating 4.3 Editing XML.........................................................................................................................................97 in Text View 4.4 Editing XML.........................................................................................................................................99 in Grid View 4.5 Editing XML.........................................................................................................................................100