Altova Xmlspy 2013 User and Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
User Manual and Programmers' Reference Altova XMLSpy 2013 User and 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: 2013 © 2013 Altova GmbH Table of contents Welcome to XMLSpy 3 User Manual 6 1 Introduction 8 1.1 The Graphical.........................................................................................................................................9 User Interface (GUI) 1.1.1 Main Window............................................................................................................................10 1.1.2 Project Window............................................................................................................................11 1.1.3 Info Window............................................................................................................................13 1.1.4 Entry Helpers............................................................................................................................13 1.1.5 Output Window:............................................................................................................................14 Messages 1.1.6 Menu Bar,............................................................................................................................15 Toolbars, Status Bar 1.2 The Application.........................................................................................................................................17 Environment 1.2.1 Settings and............................................................................................................................17 Customization 1.2.2 Tutorials,............................................................................................................................17 Projects, Examples 1.2.3 XMLSpy............................................................................................................................18 Features and Help, and Altova Products 2 XMLSpy Tutorial 19 2.1 XMLSpy .........................................................................................................................................20Interface 2.1.1 The Views............................................................................................................................21 2.1.2 The Windows............................................................................................................................22 2.1.3 Menus and............................................................................................................................24 Toolbars 2.1.4 Text View............................................................................................................................26 Settings 2.2 XML Schemas.........................................................................................................................................30 2.3 XML Documents.........................................................................................................................................32 2.3.1 Creating ............................................................................................................................32a New XML File 2.3.2 Specifying............................................................................................................................34 the Type of an Element 2.3.3 Entering ............................................................................................................................35Data in Text View 2.3.4 Validating............................................................................................................................39 the Document 2.3.5 Adding Elements............................................................................................................................41 and Attributes 2.4 XSLT Transformations.........................................................................................................................................43 2.4.1 Assigning............................................................................................................................43 an XSLT File Altova XMLSpy 2013 1 2.4.2 Transforming............................................................................................................................44 the XML File 2.4.3 Modifying............................................................................................................................45 the XSL File 2.5 Project Management.........................................................................................................................................47 2.5.1 Benefits ............................................................................................................................47of Projects 2.5.2 Building ............................................................................................................................47a Project 2.6 That's It .........................................................................................................................................49 3 Editing Views 50 3.1 Text View.........................................................................................................................................51 3.1.1 Formatting............................................................................................................................51 in Text View 3.1.2 Displaying............................................................................................................................53 the Document 3.1.3 Editing in............................................................................................................................56 Text View 3.1.4 Entry Helpers............................................................................................................................58 in Text View 3.2 Grid View.........................................................................................................................................60 3.2.1 Entry Helpers............................................................................................................................61 in Grid View 3.3 Schema View.........................................................................................................................................63 3.3.1 Attributes,............................................................................................................................64 Assertions, and Identity Constraints – Identity............................................................................................................................ Constraints 66 3.3.2 Base Type............................................................................................................................73 Modification 3.3.3 Smart Restrictions............................................................................................................................74 3.3.4 xml:base,............................................................................................................................78 xml:id, xml:lang, xml:space 3.3.5 Back and............................................................................................................................80 Forward: Moving through Positions 3.4 Authentic.........................................................................................................................................81 View 3.4.1 Overview............................................................................................................................81 of the GUI 3.4.2 Authentic............................................................................................................................82 View Toolbar Icons 3.4.3 Authentic............................................................................................................................84 View Main Window 3.4.4 Authentic............................................................................................................................86 View Entry Helpers 3.4.5 Authentic............................................................................................................................90 View Context Menus 3.5 Browser View.........................................................................................................................................93 4 XML 94 4.1 Creating, .........................................................................................................................................95Opening, and Saving XML Documents 4.2 Assigning.........................................................................................................................................97