Altova Xmlspy 2010 User & Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
User Manual and Programmers' Reference Altova XMLSpy 2010 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: 2010 © 2010 Altova GmbH Table of Contents Welcome to XMLSpy 3 User Manual 6 1 New Features 7 2 Introduction 8 2.1 The Graphical.........................................................................................................................................9 User Interface (GUI) 2.1.1 Main Window............................................................................................................................10 2.1.2 Project Window............................................................................................................................11 2.1.3 Info Window............................................................................................................................13 2.1.4 Entry Helpers............................................................................................................................13 2.1.5 Messages............................................................................................................................14 Window 2.1.6 Menu Bar,............................................................................................................................15 Toolbars, Status Bar 2.2 The Application.........................................................................................................................................16 Environment 2.2.1 Settings and............................................................................................................................16 Customization 2.2.2 Tutorials,............................................................................................................................16 Projects, Examples 2.2.3 XMLSpy............................................................................................................................17 Features and Help, and Altova Products 3 XMLSpy Tutorial 18 3.1 XMLSpy .........................................................................................................................................19Interface 3.2 XML Schemas.........................................................................................................................................20 3.3 XML Documents.........................................................................................................................................22 3.3.1 Creating ............................................................................................................................22a New XML File 3.3.2 Specifying............................................................................................................................24 the Type of an Element 3.3.3 Entering ............................................................................................................................25Data in Text View 3.3.4 Validating............................................................................................................................29 the Document 3.3.5 Adding Elements............................................................................................................................32 and Attributes 3.4 XSLT Transformations.........................................................................................................................................34 3.4.1 Assigning............................................................................................................................34 an XSLT File 3.4.2 Transforming............................................................................................................................35 the XML File Altova XMLSpy 2010 1 3.4.3 Modifying............................................................................................................................36 the XSL File 3.5 Project Management.........................................................................................................................................38 3.5.1 Benefits ............................................................................................................................38of Projects 3.5.2 Building ............................................................................................................................38a Project 3.6 That's It .........................................................................................................................................40 4 Editing Views 41 4.1 Text View.........................................................................................................................................42 4.1.1 Formatting............................................................................................................................42 in Text View 4.1.2 Displaying............................................................................................................................44 the Document 4.1.3 Editing in............................................................................................................................47 Text View 4.1.4 Entry Helpers............................................................................................................................49 in Text View 4.2 Grid View.........................................................................................................................................51 4.2.1 Entry Helpers............................................................................................................................52 in Grid View 4.3 Schema View.........................................................................................................................................54 4.3.1 Schema Overview............................................................................................................................54 4.3.2 Content Model............................................................................................................................58 View 4.3.3 Entry Helpers............................................................................................................................68 in Schema View 4.3.4 Identity Constraints............................................................................................................................72 4.3.5 Smart Restrictions............................................................................................................................76 4.3.6 xml:base,............................................................................................................................80 xml:id, xml:lang, xml:space 4.3.7 Back and............................................................................................................................82 Forward: Moving through Positions 4.4 Authentic.........................................................................................................................................83 View 4.4.1 Overview............................................................................................................................83 of the GUI 4.4.2 Authentic............................................................................................................................84 View Toolbar Icons 4.4.3 Authentic............................................................................................................................86 View Main Window 4.4.4 Authentic............................................................................................................................88 View Entry Helpers 4.4.5 Authentic............................................................................................................................92 View Context Menus 4.5 Browser View.........................................................................................................................................95 5 XML 96 5.1 Creating, .........................................................................................................................................97Opening, and Saving XML Documents 5.2 Assigning.........................................................................................................................................99 Schemas and Validating 5.3 Editing XML.........................................................................................................................................101 in Text View 5.4 Editing XML.........................................................................................................................................103