xmlspyent

1442
User Manual and Programmers' Reference

Upload: lythithuy-lythithuytrieuducbinh

Post on 22-Nov-2014

131 views

Category:

Documents


2 download

TRANSCRIPT

User Manual and Programmers' Reference

Altova XMLSpy 2011 User & Reference ManualAll 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 Contents3

Welcome to XMLSpy

User Manual

6

1

New Features

8

22.1

Introduction2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.1.10 2.1.11 2.1.12

9

.........................................................................................................................................10 The Graphical User Interface (GUI) Main Window ............................................................................................................................11 Project Window ............................................................................................................................12 Info Window ............................................................................................................................14 Entry Helpers ............................................................................................................................14 Output Window: Messages ............................................................................................................................15 Output Window: XPath ............................................................................................................................16 Output Window: XSL Outline ............................................................................................................................21 Output Window: Find in Files ............................................................................................................................21 Output Window: Find in Schemas ............................................................................................................................23 Output Window: Find in XBRL ............................................................................................................................23 Output Window: Charts ............................................................................................................................24 Menu Bar, Toolbars, Status Bar ............................................................................................................................26 .........................................................................................................................................28 The Application Environment 2.2.1 Settings, ............................................................................................................................28 Customization, and Menus 2.2.2 Tutorials, Projects, Examples ............................................................................................................................30 2.2.3 XMLSpy Features and Help, and Altova Products ............................................................................................................................30

2.2

33.1 3.2

XMLSpy Tutorial

32

XMLSpy .........................................................................................................................................33 Interface .........................................................................................................................................34 XML Schemas: Basics3.2.1 3.2.2 3.2.3 Creating ............................................................................................................................34 a New XML Schema File Defining............................................................................................................................37 Namespaces Defining............................................................................................................................38 a Content Model1

Altova XMLSpy 2011

3.2.4 3.2.5 3.2.6

3.3

3.4

3.5

3.6

3.7

3.8

Adding Elements with Drag-and-Drop ............................................................................................................................42 Configuring the Content Model View ............................................................................................................................43 Completing the Basic Schema ............................................................................................................................45 .........................................................................................................................................49 XML Schemas: Advanced 3.3.1 Working............................................................................................................................49 with Complex Types and Simple Types 3.3.2 Referencing Global Elements ............................................................................................................................56 3.3.3 Attributes and Attribute Enumerations ............................................................................................................................58 .........................................................................................................................................62 XML Schemas: XMLSpy Features 3.4.1 Schema Navigation ............................................................................................................................62 3.4.2 Schema Documentation ............................................................................................................................64 .........................................................................................................................................68 XML Documents 3.5.1 Creating ............................................................................................................................68 a New XML File 3.5.2 Specifying the Type of an Element ............................................................................................................................70 3.5.3 Entering ............................................................................................................................72 Data in Grid View 3.5.4 Entering ............................................................................................................................72 Data in Text View 3.5.5 Validating the Document ............................................................................................................................76 3.5.6 Adding Elements and Attributes ............................................................................................................................80 3.5.7 Editing in Database/Table View ............................................................................................................................82 3.5.8 Modifying the Schema ............................................................................................................................86 .........................................................................................................................................89 XSLT Transformations 3.6.1 Assigning an XSLT File ............................................................................................................................89 3.6.2 Transforming the XML File ............................................................................................................................90 3.6.3 Modifying the XSL File ............................................................................................................................91 .........................................................................................................................................93 Project Management 3.7.1 Benefits ............................................................................................................................93 of Projects 3.7.2 Building ............................................................................................................................93 a Project That's It .........................................................................................................................................95

44.1

Editing Views4.1.1 4.1.2 4.1.3 4.1.4

96

.........................................................................................................................................97 Text View Formatting in Text View ............................................................................................................................97 Displaying the Document ............................................................................................................................99 Editing ............................................................................................................................102 in Text View Entry Helpers in Text View ............................................................................................................................104 .........................................................................................................................................106 Grid View 4.2.1 Editing ............................................................................................................................107 in Grid View 4.2.2 Grid View Tables ............................................................................................................................108 4.2.3 Entry Helpers in Grid View ............................................................................................................................112 .........................................................................................................................................114 Schema View 4.3.1 Schema............................................................................................................................114 Overview 4.3.2 Content............................................................................................................................118 Model View 4.3.3 Entry Helpers in Schema View ............................................................................................................................129 4.3.4 Identity............................................................................................................................132 Constraints 4.3.5 Smart Restrictions ............................................................................................................................136Altova XMLSpy 2011

4.2

4.3

2

4.3.6 4.3.7

4.4

4.5

4.6

4.7 4.8

xml:base, xml:id, xml:lang, xml:space ............................................................................................................................140 Back and Forward: Moving through Positions ............................................................................................................................142 .........................................................................................................................................143 WSDL View 4.4.1 Main Window ............................................................................................................................144 4.4.2 Overview Entry Helper ............................................................................................................................148 4.4.3 Details ............................................................................................................................152 Entry Helper .........................................................................................................................................153 XBRL View 4.5.1 Main Window: Elements Tab ............................................................................................................................153 4.5.2 Main Window: Definitions, Presentation, Calculation Tabs ............................................................................................................................157 4.5.3 Entry Helpers in XBRL View ............................................................................................................................160 .........................................................................................................................................164 Authentic View 4.6.1 Overview of the GUI ............................................................................................................................164 4.6.2 Authentic View Toolbar Icons ............................................................................................................................165 4.6.3 Authentic View Main Window ............................................................................................................................167 4.6.4 Authentic View Entry Helpers ............................................................................................................................169 4.6.5 Authentic View Context Menus ............................................................................................................................173 Browser.........................................................................................................................................176 View Archive .........................................................................................................................................177 View

55.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8

XML

179

.........................................................................................................................................180 Creating, Opening, and Saving XML Documents .........................................................................................................................................182 Assigning Schemas and Validating .........................................................................................................................................184 Editing XML in Text View .........................................................................................................................................186 Editing XML in Grid View .........................................................................................................................................189 Editing XML in Authentic View .........................................................................................................................................191 Entry Helpers for XML Documents .........................................................................................................................................193 Processing with XSLT and XQuery Charts .........................................................................................................................................195 5.8.1 5.8.2 5.8.3 5.8.4 5.8.5 5.8.6 5.8.7 5.8.8 5.8.9 5.8.10 Creating a Chart ............................................................................................................................196 Source XPath ............................................................................................................................200 X-Axis ............................................................................................................................203 Selection Y-Axis ............................................................................................................................207 Selection Chart Data ............................................................................................................................211 Chart Type ............................................................................................................................212 Chart Appearance ............................................................................................................................213 Export ............................................................................................................................214 Chart Example: Simple ............................................................................................................................215 Chart Example: Advanced ............................................................................................................................217 .........................................................................................................................................224 Additional Features

5.9

66.1

DTDs and XML Schemas

226

DTDs .........................................................................................................................................2273

Altova XMLSpy 2011

6.2 6.3 6.4

.........................................................................................................................................229 XML Schemas Schema .........................................................................................................................................230 Subsets .........................................................................................................................................234 Schema Rules 6.4.1 6.4.2 Managing Rule Sets ............................................................................................................................234 Defining a Rule Set ............................................................................................................................236 Catalogs.........................................................................................................................................241 in XMLSpy Working.........................................................................................................................................245 with SchemaAgent 6.6.1 Connecting to SchemaAgent Server ............................................................................................................................246 6.6.2 Opening Schemas Found in the Search Path ............................................................................................................................248 6.6.3 Using IIRs ............................................................................................................................249 6.6.4 Viewing Schemas in SchemaAgent ............................................................................................................................253 6.6.5 SchemaAgent Validation ............................................................................................................................253 .........................................................................................................................................255 Find in Schemas 6.7.1 Search Term ............................................................................................................................256 6.7.2 Components ............................................................................................................................258 6.7.3 Properties ............................................................................................................................259 6.7.4 Scope ............................................................................................................................262 6.7.5 Find and Replace Commands ............................................................................................................................263 6.7.6 Results ............................................................................................................................265 and Information

6.5 6.6

6.7

77.1

XSLT and XQuery7.1.1 7.1.2 7.1.3

266

XSLT .........................................................................................................................................267XSLT Documents ............................................................................................................................267 XSLT Processing ............................................................................................................................269 XSL Outline ............................................................................................................................271 XSL ............................................................................................................................ 272 Outline Window ............................................................................................................................ 275 Info Window

7.2

XQuery .........................................................................................................................................2787.2.1 7.2.2 7.2.3 7.2.4 7.2.5 7.2.6 XQuery............................................................................................................................279 Documents XQuery............................................................................................................................280 Entry Helpers XQuery............................................................................................................................280 Syntax Coloring XQuery............................................................................................................................282 Intelligent Editing XQuery............................................................................................................................283 Validation and Execution XQuery............................................................................................................................284 and XML Databases .........................................................................................................................................288 XSLT and XQuery Debugger 7.3.1 Mechanism and Interface ............................................................................................................................289 7.3.2 Commands and Toolbar Icons ............................................................................................................................290 7.3.3 XSLT/XQuery Settings ............................................................................................................................293 7.3.4 Starting............................................................................................................................295 a Debugging Session 7.3.5 Information Windows ............................................................................................................................297 ............................................................................................................................ 298 Context Window ............................................................................................................................ 298 Variables Window ............................................................................................................................ 299 XPath-Watch Window ............................................................................................................................ 299 Call Stack WindowAltova XMLSpy 2011

7.3

4

7.4

............................................................................................................................ 300 Messages Window ............................................................................................................................ 300 Templates Window ............................................................................................................................ 300 Info Window ............................................................................................................................ 301 Trace Window ............................................................................................................................ 301 Arranging the Info Windows 7.3.6 Breakpoints ............................................................................................................................302 7.3.7 Tracepoints ............................................................................................................................305 .........................................................................................................................................311 XSLT and XQuery Profiler 7.4.1 XSLT Profiling ............................................................................................................................315 7.4.2 XQuery............................................................................................................................318 Profiling 7.4.3 Profiler............................................................................................................................321 Charts

88.1

Authentic8.1.1 8.1.2 8.1.3 8.1.4 8.1.5 8.1.6 8.1.7

324

.........................................................................................................................................326 Authentic View Tutorial Opening an XML Document in Authentic View ............................................................................................................................327 The Authentic View Interface ............................................................................................................................328 Node Operations ............................................................................................................................330 Entering Data in Authentic View ............................................................................................................................333 Entering Attribute Values ............................................................................................................................335 Adding ............................................................................................................................335 Entities Printing............................................................................................................................336 the Document .........................................................................................................................................338 Editing in Authentic View 8.2.1 Basic Editing ............................................................................................................................338 8.2.2 Tables in Authentic View ............................................................................................................................341 ............................................................................................................................ 341 SPS Tables ............................................................................................................................ 342 XML Tables ............................................................................................................................ 345 XML Table Editing Icons 8.2.3 Editing ............................................................................................................................347 a DB ............................................................................................................................ 348 Navigating a DB Table ............................................................................................................................ 348 DB Queries ............................................................................................................................ 352 Modifying a DB Table

8.2

8.2.4

8.3

Working with Dates ............................................................................................................................353 Date ............................................................................................................................ 354 Picker ............................................................................................................................ 354 Text Entry 8.2.5 Defining Entities ............................................................................................................................355 8.2.6 Images ............................................................................................................................356 in Authentic View 8.2.7 Keystrokes in Authentic View ............................................................................................................................357 .........................................................................................................................................358 Authentic Scripting

99.1 9.2

HTML, CSS, JSON

360

HTML .........................................................................................................................................361 .........................................................................................................................................363 CSS5

Altova XMLSpy 2011

9.3

JSON .........................................................................................................................................367

10

WSDL and SOAP10.1.1 10.1.2 10.1.3 10.1.4 10.1.5 10.1.6 10.1.7 10.1.8 10.1.9

370

.........................................................................................................................................371 10.1 WSDL Tutorial Creating a New Document ............................................................................................................................371 Creating a PortType ............................................................................................................................372 Creating a Binding ............................................................................................................................373 Creating a Service and Ports ............................................................................................................................375 Validating the WSDL Document ............................................................................................................................376 Connecting to a Web Service and Opening Files ............................................................................................................................376 Sending a SOAP Request from the WSDL File ............................................................................................................................377 Creating WSDL Documentation ............................................................................................................................378 Converting to WSDL 2.0 ............................................................................................................................379 .........................................................................................................................................381 10.2 SOAP 10.2.1 SOAP Validation ............................................................................................................................381 10.2.2 SOAP Communications Process ............................................................................................................................382 10.2.3 Using SOAP Debugger ............................................................................................................................383 10.2.4 Breakpoints in SOAP Debugger ............................................................................................................................389

1111.1 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.10 11.11

XBRL

392

.........................................................................................................................................393 Taxonomies: New and Existing .........................................................................................................................................394 Taxonomy Files Overview Creating.........................................................................................................................................396 a New Taxonomy .........................................................................................................................................401 Namespaces in the Taxonomy .........................................................................................................................................403 Importing a Taxonomy .........................................................................................................................................405 Setting Up the Taxonomy Files .........................................................................................................................................408 Adding Elements to a Taxonomy .........................................................................................................................................412 Relationships and Linkroles Creating.........................................................................................................................................414 Relationships: Part 1 Creating.........................................................................................................................................417 Relationships: Part 2 .........................................................................................................................................420 Find in XBRL 11.11.1 Search Term ............................................................................................................................420 11.11.2 Command Execution ............................................................................................................................422 11.11.3 Results ............................................................................................................................424 and Information

12

Office Open XML and ZIP

425

12.1 Working.........................................................................................................................................427 with OOXML Files .........................................................................................................................................429 12.2 OOXML Example Files .........................................................................................................................................430 12.3 ZIP Files

6

Altova XMLSpy 2011

13

Databases13.1.1 13.1.2 13.1.3 13.1.4 13.1.5

432

.........................................................................................................................................433 13.1 Connecting to a Data Source Connection Wizard ............................................................................................................................434 Existing Connections ............................................................................................................................435 ADO Connections ............................................................................................................................436 ODBC Connections ............................................................................................................................440 Global Resources ............................................................................................................................443 .........................................................................................................................................445 13.2 Supported Databases

14

Altova Global Resources14.1.1 14.1.2 14.1.3 14.1.4

446

.........................................................................................................................................447 14.1 Defining Global Resources Files ............................................................................................................................449 Folders............................................................................................................................451 Databases ............................................................................................................................452 Copying Configurations ............................................................................................................................453 .........................................................................................................................................454 14.2 Using Global Resources 14.2.1 Assigning Files and Folders ............................................................................................................................454 14.2.2 Assigning Databases ............................................................................................................................457 14.2.3 Changing Configurations ............................................................................................................................458

15

Projects

459

15.1 Creating.........................................................................................................................................460 and Editing Projects .........................................................................................................................................463 15.2 Using Projects

16

File/Directory Comparisons

465

.........................................................................................................................................466 16.1 File Comparisons .........................................................................................................................................467 16.2 Directory Comparisons

17

Source Control

468

.........................................................................................................................................470 17.1 Supported Source Control Systems .........................................................................................................................................475 17.2 Installing Source Control Systems .........................................................................................................................................482 17.3 SCSs and Altova DiffDog Differencing

18

XMLSpy in Visual Studio

488

.........................................................................................................................................489 18.1 Installing the XMLSpy Plugin .........................................................................................................................................491 18.2 Differences with XMLSpy StandaloneAltova XMLSpy 2011 7

.........................................................................................................................................493 18.3 XMLSpy's Debuggers in Visual Studio .........................................................................................................................................494 18.4 Known Issues

19

XMLSpy in Eclipse

495

.........................................................................................................................................496 19.1 Installing the XMLSpy Plugin for Eclipse .........................................................................................................................................500 19.2 XMLSpy Entry Points in Eclipse .........................................................................................................................................503 19.3 XMLSpy's Debugger Perspectives

2020.1 20.2 20.3 20.4

Code Generator

504

.........................................................................................................................................505 Introduction to code generator .........................................................................................................................................507 What's new ... .........................................................................................................................................509 Generating source code from a schema .........................................................................................................................................511 Using the generated code library 20.4.1 20.4.2 20.4.3 20.4.4 20.4.5 Example schema ............................................................................................................................512 Using the generated Java library ............................................................................................................................513 Using the generated C++ library ............................................................................................................................519 Using the generated C# library ............................................................................................................................526 Using generated code compatible to old versions ............................................................................................................................532 ............................................................................................................................ 533 Creating XML files (XMLSpy 2006) ............................................................................................................................ 535 Creating XML files (XMLSpy 2005) ............................................................................................................................ 537 Opening and parsing existing XML files (XMLSpy 2006) ............................................................................................................................ 540 Opening and parsing existing XML files (XMLSpy 2005)

.........................................................................................................................................543 20.5 Code generation tips .........................................................................................................................................545 20.6 Code generator options 20.7 The way.........................................................................................................................................546 to SPL (Spy Programming Language) 20.7.1 20.7.2 20.7.3 20.7.4 20.7.5 20.7.6 20.7.7 20.7.8 20.7.9 Basic SPL structure ............................................................................................................................546 Declarations ............................................................................................................................547 Variables ............................................................................................................................548 Predefined variables ............................................................................................................................549 Creating output files ............................................................................................................................550 Operators ............................................................................................................................551 Conditions ............................................................................................................................551 foreach ............................................................................................................................552 Subroutines ............................................................................................................................553 ............................................................................................................................ 553 Subroutine declaration ............................................................................................................................ 554 Subroutine invocation ............................................................................................................................ 555 Subroutine example

20.7.10 Built in............................................................................................................................556 Types ............................................................................................................................ 556 Library ............................................................................................................................ 556 Namespace Type............................................................................................................................ 557 ............................................................................................................................ 557 Member

8

Altova XMLSpy 2011

............................................................................................................................ 558 NativeBinding ............................................................................................................................ 558 Facets ............................................................................................................................ 559 Old object model (up to v2007) Namespace ....................................................................................................................... 559 Class ....................................................................................................................... 559 Member....................................................................................................................... 560 Facet ....................................................................................................................... 562 Enumeration ....................................................................................................................... 562 Pattern ....................................................................................................................... 562 .........................................................................................................................................563 20.8 Error Codes

21

User Reference21.1.1 21.1.2 21.1.3 21.1.4 21.1.5 21.1.6 21.1.7 21.1.8 21.1.9 21.1.10

564

.........................................................................................................................................565 21.1 File Menu New ............................................................................................................................565 Open ............................................................................................................................569 Reload ............................................................................................................................573 Encoding ............................................................................................................................573 Close, Close All ............................................................................................................................573 Save, Save As, Save All ............................................................................................................................574 Send by............................................................................................................................579 Mail Print ............................................................................................................................580 Print Preview, Print Setup ............................................................................................................................581 Recent Files, Exit ............................................................................................................................581 .........................................................................................................................................583 21.2 Edit Menu 21.2.1 Undo, Redo ............................................................................................................................584 21.2.2 Cut, Copy, Paste, Delete ............................................................................................................................584 21.2.3 Copy as............................................................................................................................584 XML-Text 21.2.4 Copy as............................................................................................................................585 Structured Text 21.2.5 Insert File Path ............................................................................................................................587 21.2.6 Insert XInclude ............................................................................................................................587 21.2.7 Copy XPath ............................................................................................................................589 21.2.8 Copy XPointer ............................................................................................................................589 21.2.9 Pretty-Print XML Text ............................................................................................................................590 21.2.10 Select All ............................................................................................................................590 21.2.11 Find, Find Next ............................................................................................................................590 21.2.12 Replace............................................................................................................................593 21.2.13 Find in ............................................................................................................................595 Files 21.2.14 Bookmark Commands ............................................................................................................................597 21.2.15 Comment In/Out ............................................................................................................................597 .........................................................................................................................................599 21.3 Project Menu 21.3.1 New Project ............................................................................................................................601 21.3.2 Open Project ............................................................................................................................601 21.3.3 Reload ............................................................................................................................601 Project 21.3.4 Close Project ............................................................................................................................601Altova XMLSpy 2011 9

21.3.5 21.3.6

Save Project ............................................................................................................................601 Source Control ............................................................................................................................601 Open............................................................................................................................ 602 from Source Control ............................................................................................................................ 603 Enable Source Control ............................................................................................................................ 603 Get Latest Version Get ............................................................................................................................ 604 ............................................................................................................................ 604 Get Folders ............................................................................................................................ 605 Check Out ............................................................................................................................ 606 Check In ............................................................................................................................ 607 Undo Check Out ............................................................................................................................ 608 Add to Source Control ............................................................................................................................ 608 Remove from Source Control ............................................................................................................................ 609 Share from Source Control ............................................................................................................................ 610 Show History ............................................................................................................................ 611 Show Differences ............................................................................................................................ 612 Show Properties ............................................................................................................................ 613 Refresh Status ............................................................................................................................ 613 Source Control Manager ............................................................................................................................ 613 Change Source Control

Add Files to Project ............................................................................................................................614 Add Global Resource to Project ............................................................................................................................614 Add URL to Project ............................................................................................................................614 Add Active File to Project ............................................................................................................................615 Add Active And Related Files to Project ............................................................................................................................615 Add Project Folder to Project ............................................................................................................................615 Add External Folder to Project ............................................................................................................................615 Add External Web Folder to Project ............................................................................................................................618 Script Settings ............................................................................................................................622 Properties ............................................................................................................................622 Most Recently Used Projects ............................................................................................................................624 .........................................................................................................................................625 21.4 XML Menu 21.4.1 Insert ............................................................................................................................625 ............................................................................................................................ 626 Insert Attribute ............................................................................................................................ 626 Insert Element ............................................................................................................................ 626 Insert Text ............................................................................................................................ 627 Insert CDATA ............................................................................................................................ 627 Insert Comment ............................................................................................................................ 627 Insert XML ............................................................................................................................ 627 Insert Processing Instruction ............................................................................................................................ 627 Insert XInclude ............................................................................................................................ 629 Insert DOCTYPE ............................................................................................................................ 630 Insert ExternalID ............................................................................................................................ 630 Insert ELEMENT ............................................................................................................................ 631 Insert ATTLIST ............................................................................................................................ 631 Insert ENTITY10 Altova XMLSpy 2011

21.3.7 21.3.8 21.3.9 21.3.10 21.3.11 21.3.12 21.3.13 21.3.14 21.3.15 21.3.16 21.3.17

21.4.2

............................................................................................................................ 631 Insert NOTATION Append............................................................................................................................631 ............................................................................................................................ 632 Append Attribute ............................................................................................................................ 632 Append Element ............................................................................................................................ 632 Append Text ............................................................................................................................ 633 Append CDATA ............................................................................................................................ 633 Append Comment ............................................................................................................................ 633 Append XML ............................................................................................................................ 633 Append Processing Instruction ............................................................................................................................ 633 Append XInclude ............................................................................................................................ 635 Append DOCTYPE ............................................................................................................................ 636 Append ExternalID ............................................................................................................................ 636 Append ELEMENT ............................................................................................................................ 637 Append ATTLIST ............................................................................................................................ 637 Append ENTITY ............................................................................................................................ 637 Append NOTATION Add Child ............................................................................................................................637 ............................................................................................................................ 638 Add Child Attribute ............................................................................................................................ 638 Add Child Element ............................................................................................................................ 638 Add Child Text ............................................................................................................................ 638 Add Child CDATA ............................................................................................................................ 639 Add Child Comment ............................................................................................................................ 639 Add Child XML ............................................................................................................................ 639 Add Child Processing Instruction ............................................................................................................................ 639 Add Child XInclude ............................................................................................................................ 641 Add Child DOCTYPE ............................................................................................................................ 641 Add Child ExternalID ............................................................................................................................ 642 Add Child ELEMENT ............................................................................................................................ 642 Add Child ATTLIST ............................................................................................................................ 642 Add Child ENTITY ............................................................................................................................ 642 Add Child NOTATION Convert............................................................................................................................643 To ............................................................................................................................ 643 Convert To Attribute ............................................................................................................................ 643 Convert To Element ............................................................................................................................ 643 Convert To Text ............................................................................................................................ 643 Convert To CDATA ............................................................................................................................ 644 Convert To Comment ............................................................................................................................ 644 Convert To XML ............................................................................................................................ 644 Convert To Processing Instruction ............................................................................................................................ 644 Convert To DOCTYPE ............................................................................................................................ 644 Convert To ExternalID ............................................................................................................................ 644 Convert To ELEMENT ............................................................................................................................ 644 Convert To ATTLIST ............................................................................................................................ 644 Convert To ENTITY ............................................................................................................................ 645 Convert To NOTATION11

21.4.3

21.4.4

Altova XMLSpy 2011

21.4.5

Table ............................................................................................................................645 ............................................................................................................................ 645 Display as Table ............................................................................................................................ 646 Insert Row ............................................................................................................................ 646 Append Row ............................................................................................................................ 646 Ascending Sort ............................................................................................................................ 647 Descending Sort

Move Left ............................................................................................................................647 Move Right ............................................................................................................................647 Enclose............................................................................................................................648 in Element Evaluate XPath ............................................................................................................................648 Check Well-Formedness ............................................................................................................................648 Validate XML ............................................................................................................................649 Validating WSDL Files ............................................................................................................................652 Update ............................................................................................................................653 Entry Helpers Namespace Prefix. ............................................................................................................................653 .........................................................................................................................................655 21.5 DTD/Schema Menu 21.5.1 Assign DTD ............................................................................................................................655 21.5.2 Assign Schema ............................................................................................................................656 21.5.3 Include ............................................................................................................................656 Another DTD 21.5.4 Go to DTD ............................................................................................................................656 21.5.5 Go to Schema ............................................................................................................................656 21.5.6 Go to Definition ............................................................................................................................657 21.5.7 Generate DTD/Schema ............................................................................................................................657 21.5.8 Convert............................................................................................................................659 DTD/Schema 21.5.9 Convert............................................................................................................................661 to UML 21.5.10 Generate XML from DB, Excel, EDI with MapForce ............................................................................................................................663 21.5.11 Design ............................................................................................................................663 HTML/PDF/Word Output in StyleVision... 21.5.12 Generate Sample XML File ............................................................................................................................663 21.5.13 Generate Program Code ............................................................................................................................664 21.5.14 Flush Memory Cache ............................................................................................................................665 21.6 Schema .........................................................................................................................................666 Design Menu 21.6.1 Schema............................................................................................................................666 Settings 21.6.2 Save Diagram ............................................................................................................................668 21.6.3 Generate Documentation ............................................................................................................................668 21.6.4 Configure View ............................................................................................................................671 21.6.5 Zoom ............................................................................................................................674 21.6.6 Display............................................................................................................................675 All Globals 21.6.7 Display............................................................................................................................675 Diagram 21.6.8 Schema............................................................................................................................675 Extensions for Databases ............................................................................................................................ 675 Enable Oracle Schema Extensions ............................................................................................................................ 676 Oracle Schema Settings ............................................................................................................................ 676 Enable Microsoft SQL Server Schema Extensions ............................................................................................................................ 677 Named Schema Relationships ............................................................................................................................ 678 Unnamed Element Relationships 21.6.912

21.4.6 21.4.7 21.4.8 21.4.9 21.4.10 21.4.11 21.4.12 21.4.13 21.4.14

Connect to SchemaAgent Server ............................................................................................................................678Altova XMLSpy 2011

Disconnect from SchemaAgent Server ............................................................................................................................679 Show in SchemaAgent ............................................................................................................................679 SchemaAgent Validation ............................................................................................................................680 Create Schema Subset ............................................................................................................................680 Flatten Schema ............................................................................................................................681 .........................................................................................................................................683 21.7 XSL/XQuery Menu 21.7.1 XSL Transformation ............................................................................................................................684 21.7.2 XSL-FO Transformation ............................................................................................................................685 21.7.3 XSL Parameters / XQuery Variables ............................................................................................................................686 21.7.4 XQuery............................................................................................................................690 Execution 21.7.5 Enable XSLT/XQuery Profiling ............................................................................................................................690 21.7.6 Assign XSL ............................................................................................................................690 21.7.7 Assign XSL-FO ............................................................................................................................691 21.7.8 Assign Sample XML File ............................................................................................................................691 21.7.9 Go to XSL ............................................................................................................................691 21.7.10 Start Debugger / Go ............................................................................................................................691 21.7.11 Stop Debugger ............................................................................................................................692 21.7.12 Restart ............................................................................................................................692 Debugger 21.7.13 End Debugger Session ............................................................................................................................692 21.7.14 Step Into ............................................................................................................................692 21.7.15 Step Out ............................................................................................................................692 21.7.16 Step Over ............................................................................................................................692 21.7.17 Show Current Execution Node ............................................................................................................................693 21.7.18 Insert/Remove Breakpoint ............................................................................................................................693 21.7.19 Insert/Remove Tracepoint ............................................................................................................................693 21.7.20 Enable/Disable Breakpoint ............................................................................................................................693 21.7.21 Enable/Disable Tracepoint ............................................................................................................................694 21.7.22 Breakpoints/Tracepoints ............................................................................................................................694 21.7.23 Debug Windows ............................................................................................................................695 21.7.24 XSLT/XQuery Settings ............................................................................................................................695 .........................................................................................................................................696 21.8 Authentic Menu 21.8.1 New Document ............................................................................................................................696 21.8.2 Edit Database Data ............................................................................................................................697 21.8.3 Assign/Edit a StyleVision Stylesheet ............................................................................................................................698 21.8.4 Select New Row with XML Data for Editing ............................................................................................................................698 21.8.5 Define XML Entities ............................................................................................................................699 21.8.6 Hide Markup, Show Small/Large/Mixed Markup ............................................................................................................................701 21.8.7 Append/Insert/Duplicate/Delete Row ............................................................................................................................701 21.8.8 Move Row Up/Down ............................................................................................................................702 .........................................................................................................................................703 21.9 DB Menu 21.9.1 Connecting to a Data Source ............................................................................................................................703 ............................................................................................................................ 705 Connection Wizard ............................................................................................................................ 706 Existing Connections ADO............................................................................................................................ 707 Connections ............................................................................................................................ 711 ODBC ConnectionsAltova XMLSpy 2011 13

21.6.10 21.6.11 21.6.12 21.6.13 21.6.14

21.9.2

............................................................................................................................ 714 Global Resources Query Database ............................................................................................................................714 Data ............................................................................................................................ 716 Sources ............................................................................................................................ 717 Browser Pane: Viewing the DB Objects ............................................................................................................................ 721 Query Pane: Description and Features ............................................................................................................................ 724 Query Pane: Working with Queries ............................................................................................................................ 724 Results and Messages IBM DB2 ............................................................................................................................727 ............................................................................................................................ 727 Manage XML Schemas ............................................................................................................................ 730 Assign XML Schema SQL Server ............................................................................................................................732 ............................................................................................................................ 732 Manage XML Schemas Oracle XML DB ............................................................................................................................734 ............................................................................................................................ 735 Manage XML Schemas ............................................................................................................................ 737 Browse Oracle XML documents

21.9.3

21.9.4 21.9.5

21.10 Convert .........................................................................................................................................739 MenuImport Text File ............................................................................................................................739 Import Database Data ............................................................................................................................741 Import Microsoft Word Document ............................................................................................................................745 Create XML Schema from DB Structure ............................................................................................................................746 DB Import Based on XML Schema ............................................................................................................................750 Create DB Structure from XML Schema ............................................................................................................................751 Export to Text Files ............................................................................................................................754 Export to a Database ............................................................................................................................757 Convert............................................................................................................................759 XML to/from JSON .........................................................................................................................................761 21.11 View Menu 21.11.1 Text View ............................................................................................................................761 21.11.2 Grid View ............................................................................................................................761 21.11.3 Schema............................................................................................................................761 Design View 21.11.4 WSDL ............................................................................................................................762 Design View 21.11.5 XBRL Taxonomy View ............................................................................................................................762 21.11.6 Authentic View ............................................................................................................................762 21.11.7 Browser View ............................................................................................................................762 21.11.8 Expand............................................................................................................................762 21.11.9 Collapse ............................................................................................................................763 21.11.10 Expand............................................................................................................................763 Fully 21.11.11 Collapse Unselected ............................................................................................................................763 21.11.12 Optimal Widths ............................................................................................................................763 21.11.13 Word Wrap ............................................................................................................................763 21.11.14 Go to Line/Character ............................................................................................................................764 21.11.15 Go to File ............................................................................................................................764 21.11.16 Text View Settings ............................................................................................................................764 21.12 Browser.........................................................................................................................................766 Menu 21.12.1 Back ............................................................................................................................766 21.12.2 Forward ............................................................................................................................76614 Altova XMLSpy 2011

21.10.1 21.10.2 21.10.3 21.10.4 21.10.5 21.10.6 21.10.7 21.10.8 21.10.9

Stop ............................................................................................................................766 Refresh............................................................................................................................766 Fonts ............................................................................................................................766 Separate Window ............................................................................................................................766 .........................................................................................................................................768 21.13 WSDL Menu 21.13.1 WSDL ............................................................................................................................768 1.1 Components ............................................................................................................................ 768 Messages ............................................................................................................................ 769 Operations ............................................................................................................................ 769 PortType ............................................................................................................................ 769 Binding ............................................................................................................................ 770 Service 21.13.2 WSDL ............................................................................................................................770 2.0 Components ............................................................................................................................ 770 Interface ............................................................................................................................ 772 Binding ............................................................................................................................ 772 Service Types ............................................................................................................................773 Save Diagram, Generate Documentation ............................................................................................................................773 Re