home *** CD-ROM | disk | FTP | other *** search
/ PC User 2001 August / APC_Aug2001_CD2.iso / features / web_dev / files / xmlspy35.exe / Main / xmlspy35.chm / cshelp.txt < prev    next >
Encoding:
Text File  |  2001-06-19  |  118.4 KB  |  2,205 lines

  1. .topic 10001
  2. XML Spy is the first true Integrated Development Environment (IDE) for the eXtensible Markup Language (XML) and contains many useful functions that can simplify typical XML editing tasks for you. This help system is provided to help you get started with using our software and provides detailed information on all aspects of the product.
  3.  
  4. It includes a Tutorial section that shows you how to use XML Spy for the major aspects of XML:
  5.  
  6. XML editing & validation
  7. Schema/DTD editing & validation
  8. XSL editing & transformation
  9.  
  10. The Reference section explains each window and menu command in detail and can easily be accessed through the Contents, Index and context-sensitive help (F1) from any menu or dialog.
  11.  
  12. You may also want to periodically check our XML Spy web-server for news, updates, and new examples:
  13.  
  14.  
  15.  
  16. If you encounter an occasional error or, perhaps, some incomplete information in this online help or the printed documentation and you need help with XML Spy, please don't hesitate to visit our Support Center on the Internet, where you'll find additional links to the FAQ pages as well as our online Support Form. Also, please feel free to send us any feedback regarding the new documentation.
  17.  
  18. We will also be providing periodic free updates to the online help system and the printable documentation on the Download page on our web server.
  19.  
  20. .topic 10002
  21. The eXtensible Markup Language (XML) is a subset of SGML (the Structured Generalized Markup Language) that has been defined by the World Wide Web Consortium (W3C) in 1998 (see http://www.w3.org/TR/REC-xml). Its goal is to enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML has been designed for ease of implementation and for interoperability with both SGML and HTML.
  22.  
  23. The XML Spy 3.5 online help and printable documentation contain a Tutorial section that give you a general overview of XML and XML Spy.
  24.  
  25. To learn more about XML and its associated protocols, please also visit our list of recommended links to various XML-related information resources on the XML Spy web server.
  26.  
  27. .topic 20000
  28. This Tutorial will introduce you to XML, and how to use XML Spy for all your XML-related editing needs.
  29.  
  30. We will take a short tour to discuss the various aspects of XML and the other related W3C standards, before explaining the various features of XML Spy that will help you make the most of XML.
  31.  
  32. If you are already familiar with XML, you may wish to skip to the Using XML Spy section.
  33.  
  34. .topic 20001
  35. This screen shot shows the XML Spy application window.
  36.  
  37. The Enhanced Grid View   is enabled , and the Altova.xml file is the active document.
  38. The "Display as Table"   function has been activated for the Division element. "Display as Table" displays recurring elements in tabular form. This embedded view, is available in all XML spy views wherever recurring elements occur. Click on the same icon to return to the grid view.
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46. .topic 20002
  47. This screen shot shows the main window containing a XML document, and the same document in Browser view.
  48. Click on the Browser view icon,   to open the Browser view of an XML Document.
  49.  
  50. For the Browser view to display/render a XML document correctly:
  51. The XML Document must contain a reference to a XSL stylesheet or
  52. A XSL Stylesheet has to be assigned to the to the XML documents for the current project.
  53.  
  54.  
  55.  
  56.  
  57.  
  58. .topic 20003
  59. This screen shot shows the main window containing an XML Schema document (XSDL - XML Schema Definition Language).
  60. Click on the Schema Design View icon   to open Schema Overview. The main window then displays all Global "particles" (elements, complex types etc.) in list form.
  61.  
  62.  
  63.  
  64. To see graphical representation of each particle:
  65. 1. Click on the   icon next to the particle you want to display.
  66. The content model for that particle appears in a tree view.
  67.  
  68. To return to the Schema overview:
  69. Click the "Show Globals" icon   to return to the Schema Overview.
  70. Select the menu option Schema design | Display All Globals to return to the Display All Globals view.
  71.  
  72.  
  73.  
  74.  
  75.  
  76. .topic 20004
  77. This screen shot shows the main window containing a XSL (eXtensible Stylesheet Language) document, in Text view.
  78.  
  79.  
  80.  
  81. Clicking on the Enhanced Grid View icon,   displays the same XSL document in grid form.
  82.  
  83.  
  84.  
  85. .topic 20005
  86. XML Spy uses the familiar tree view display to manage your XML projects.
  87.  
  88. Project folders allow you to:
  89. Group XML files by their extension
  90. Assign XSL transformation parameters to specific folders, enabling you to view XML documents with "default" stylesheets
  91. Validate XML files by assigning DTDs or Schemas to specific folders.
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98. .topic 30000
  99. The reference section contains a complete description of all XML Spy windows and menu commands and explains their use in general.
  100.  
  101. We've tried to make this user manual as comprehensive as possible. If you have questions which are not covered by this documentation and you are a registered user, please don't hesitate to contact us through the Support Center on the XML Spy web site.
  102.  
  103. .topic 31000
  104. The XML Spy user interface provides several windows that show both your document, project and intelligent editing "entry-helper" windows, that can be freely arranged to suit your personal working style.
  105.  
  106.  
  107.  
  108. The central area shows the main window, where you edit (and view) your XML, XML Schema, or XSL documents in the enhanced grid view, text view, embedded database/table view, or browser view.
  109.  
  110. The left area contains the project and info windows; the right area contains the entry helper for intelligent editing of elements, attributes, and entities.
  111.  
  112.  
  113. .topic 31100
  114. The Main Window is where you view and edit all documents in XML Spy. XML Spy allows you to open any number of XML documents simultaneously. To switch between them click on the any part of the window you wish to bring to the front.
  115.  
  116. You can also use the commands on the Window menu to organize your windows. If your windows are maximized, XML Spy also provides tabs, letting you switch between all open windows. Keyboard equivalents are: CTRL+TAB and CTRL+F6.
  117.  
  118. Right click on a tab, opens the context-menu enabling you to perform various functions on that XML document. (e.g. print, close, mail etc.).
  119.  
  120. XML Spy provides five advanced views on your documents:
  121. An Enhanced Grid View for structured editing
  122. An embedded  Database/Table view, which is available in all views, that shows repeated elements in a tabular fashion
  123. A Schema Design View for viewing and editing XML Schemas
  124. A Text View with syntax-coloring for source-level work, and
  125. An integrated Browser View that supports both CSS and XSL style-sheets.
  126.  
  127. To switch any main window between the different views, use the commands on the View menu or the corresponding toolbar buttons.
  128.  
  129. Please note:
  130. You can set your personal default viewing preferences on a per-file-type basis in the File Types tab on the Settings dialog. Select the menu option Edit | Settings to open this dialog.
  131.  
  132. .topic 31102
  133. Click the Enhanced Grid View icon   to open this view.
  134.  
  135. The Enhanced Grid View is the core presentation and editing view of XML Spy. It shows the hierarchical structure of any XML-compliant document through a set of nested containers, that can be easily expanded and collapsed to get a clear picture of the document's structure.
  136.  
  137.  
  138.  
  139. All items contained in an XML document are displayed in a structured way that allows for easy manipulation of contents and structure at the same time.
  140.  
  141. An hierarchical item (such as the XML declaration, document type declaration, or any element that contains child elements) is represented with a gray side bar and a tiny arrow. Clicking the side bar expands or collapses the item.
  142.  
  143. Please note:
  144. An element is denoted with the  icon, eg.  header
  145. An attribute is denoted with the  icon, eg.  style
  146.  
  147. Display & Navigating
  148. The contents of an hierarchical item depend on its kind and û in the case of elements û mostly consists of attributes, character data, comments and child elements.
  149.  
  150. Element and Attribute order
  151. To emphasize the strong coupling between attributes and the respective parent element, attributes are always listed first and cannot be preceded by comments, character data or child elements. The order of the individual attributes is, however, preserved from the input file and can be modified if necessary.
  152.  
  153. Following the attributes, the remaining items within an element appear exactly in the order found in the source file, and can be rearranged without restriction using drag & drop.
  154.  
  155. Elements and character data
  156. If an element contains only character data, the data will be shown in the same line as the element and the element will not be considered hierarchical by nature. The character data for any other element will be shown indented with the attributes and potential child elements and will be labeled as "Text".
  157.  
  158. If an element is collapsed, its attributes can be shown in the same line in a different color. This attribute preview is especially helpful, when editing XML documents that contain a huge number of elements of the same kind that only differ by their contents and attributes (e.g. database-like applications).
  159.  
  160. Customizing the grid view
  161. The grid view can easily be customized using the mouse to adjust column widths.
  162.  
  163. To resize a column to the width of its largest entry:
  164. 1. Double-click on the grid line to the right of that column.
  165.  
  166. To adjust the column widths to display all content:
  167. 1. Select the menu item View | Optimal widths command, or click on the Optimal widths icon  .
  168.  
  169. The heights of the cells are determined by their contents alone and cannot be adjusted by the user.
  170.  
  171. You can also use the keyboard to navigate an XML document in the Enhanced Grid View.
  172. The arrow keys move the selection bar in the tree and grid views
  173. the + and û keys on the numeric keypad allow you to expand and collapse items.
  174.  
  175. Please note:
  176. You can activate the Text view icon at any time, to see marked data in the source file for example.
  177.  
  178. Embedded Database/Table view
  179. XML Spy allows you to display recurring elements in a Database/Table view. This function is available wherever the Enhanced Grid view can be activated, and can be used when editing any type of XML file - XML, XSD, XSL etc.
  180.  
  181. Intelligent editing
  182. When editing an XML document based on a DTD or Schema, the Enhanced Grid View provides many Intelligent Editing features based on the information gathered from the Schema or DTD.
  183.  
  184. Whenever editing the name of an element or attribute, a popup menu opens. The options available depend on the position of the element and the content model defined by the Schema or DTD. A similar popup is displayed, if the contents of an element or attribute are restricted by an enumeration or choice of some sort.
  185.  
  186.  
  187.  
  188. To edit an element or attribute name:
  189. 1. Double click on the element name.
  190. 2. Edit the name (XML Spy chooses the best match from the menu).
  191. 3. Accept the selection by hitting the Return key (Esc. abandons the change).
  192.  
  193. To insert or append elements or attribute names:
  194. 1. Click on the respective icon in the Attr. & Element toolbar, or
  195.  .
  196. 2. Double click on an element or attribute name in one of the Entry Helpers.
  197.  
  198. You will notice that the various Entry Helpers are constantly updated depending on the current selection in the Enhanced Grid View. The Info Window constantly shows important information regarding the selected element or attribute.
  199.  
  200. Enhanced Grid View context menu
  201. In addition to the commands available through menus and toolbars, the Enhanced Grid View also provides a context-menu, activated by the right mouse-button. It contains the most useful commands in one convenient place:
  202.  
  203. Enhanced Grid View context menu:
  204.  
  205.  
  206.  
  207.  
  208.  
  209. .topic 31103
  210. Having clicked the Enhanced Grid View icon,   click on the "Display as Table" icon  .
  211.  
  212. The Database/Table View is integrated into the Enhanced Grid View, and allows you to view recurring elements in grid or compressed into table form. The Database /Table view is available wherever the Enhanced Grid view can be activated, and can be used when editing any type of XML file - XML, XSD, XSL etc.
  213.  
  214. You can switch between both views, grid and table, by clicking the "Display as Table" icon or pressing the F9 hotkey.
  215.  
  216. Editing in the table view is supports drag&drop and intelligent editing functions. You can also use table-specific commands to sort elements or insert new rows.
  217.  
  218. XML documents often contain sequences of repeating elements of the same kind. XML Spy automatically detects such sequences and rearranges the presentation to show these elements in a tabular fashion - common to database- or spreadsheet-like applications.
  219.  
  220. XML Spy achieves this database/table view by taking the respective attributes and sub-elements of the repeating element, and showing them as columns of the table.
  221.  
  222.  
  223.  
  224. To display recurring elements in a table view:
  225. 1. Click on the recurring element in the Enhanced Grid View (flag, in this example).
  226. The "Display as table" icon is now active.
  227.  
  228.  
  229. 2. Click the "Display as table" icon   to activate the Table View, or select the menu option Table | Display as Table. The keyboard shortcut for this function is F9.
  230.  
  231.  
  232. The nine "flag" elements are displayed in table form. Click in a cell to demark the table.
  233.  
  234. To return to the grid view, from the table view:
  235. 1. Click on the table "name" (flag (9) in this eg.). This selects the whole table.
  236. 2. Click the "Display as Table" icon, to deactivate the Table view and return to the Grid view.
  237.  
  238. Manipulating table data:
  239. Drag and drop column headers to move columns
  240. Sort column data using the menu command Table | Ascending Sort
  241. Append (or insert) rows using the menu command Table | Insert Row.
  242.  
  243. Exchanging data from the Database/Table view
  244. To exchange with other applications, select elements in this table and  copy/paste them directly into Access or Excel. Data exchange works in both ways. You can therefore copy data from any spreadsheet-like application and insert it directly into XML Spy.
  245.  
  246.  
  247.  
  248. For more complex data exchange tasks, XML Spy also offers a set of unique conversion functions that lets directly you import or export XML data from any text file, Word document or database.
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257. .topic 31101
  258. Click the Text view icon,   to open this view.
  259.  
  260. When it comes down to low-level work, the text view of XML Spy is ideally suited for XML editing in its textual or source form.
  261.  
  262.  
  263.  
  264. The text view can be used to edit any kind of text file (even non-XML conforming documents) and offers customizable syntax-coloring (including the ability to highlight server-side VBScript or JScript code in ASP pages) as well as an automatic display of the current line and character position in the status bar.
  265.  
  266. You can use the Find and Replace commands to quickly locate or change any information, and XML Spy offers unlimited levels of Undo and Redo for all your editing operations.
  267.  
  268.  
  269. Intelligent Editing
  270. If you are working with an XML document based on a DTD or XML Schema, XML Spy provides you with various intelligent editing capabilities.
  271.  
  272. 1. Type the "<" less-than character at the position you want to insert an XML element, attribute, or attribute value.
  273. This opens a popup list.
  274. 2. Enter the first few characters of the item you want to insert.
  275. An item containing those characters is highlighted.
  276.  
  277. 3. Click on the entry with the mouse pointer, or
  278. Use the arrow keys to highlight your selection and
  279. 4.    Hit the Return or Space key to accept the selected choice and close the popup window.
  280.  
  281. Please note:
  282. The popup window also appears when you edit elements or attributes in Text view.
  283. If a specific attribute is defined to follow an element, a popup window containing all valid attributes will also appear.
  284. Eg.
  285.  
  286.  
  287. Auto-completion
  288. Editing in the text view can easily result in unbalanced brackets, elements that are not closed properly, or other violations of the well-formedness principle.
  289.  
  290. XML Spy automatically completes elements as well as inserting all required attributes as soon as you finish entering the element name on your keyboard. The cursor is automatically positioned between the start and end tags of the element, so that you can immediately continue to add child elements or contents:
  291.  
  292.  
  293.  
  294. Use the Check well-formedness command at any time to ensure that the document meets the XML 1.0 Specification criteria for well-formedness. This check is also automatically performed every time you open or save a document.
  295.  
  296. Mouse & Context-Menu
  297. You can also use the mouse during editing in the Text View. If you select text, you can either use drag&drop to move the text block to a new location, or you can use the context-menu on the right mouse button, to directly access frequently used editing commands - such as Cut, Copy, Paste, Delete, Send by Mail, and Go to line/char:
  298.  
  299.  
  300.  
  301. While most customers prefer the Enhanced Grid or Database/Table view for every-day work on XML data files, the text view can occasionally be very handy when editing XSL files or if you are using Active Server Pages (ASP) or any other non-XML files for your web application.
  302.  
  303.  
  304. .topic 31104
  305. Click the Browser View icon,   to open this view.
  306.  
  307. The Browser view requires Microsoft Internet Explorer 5, and we highly recommend you to also download the MSXML3 technology preview if you intend to work with XSLT in XML Spy, as MSXML3 already supports most of the W3C XSLT Recommendation. Please see our FAQ on the Internet for more details.
  308.  
  309. Use the integrated browser view of XML Spy to preview any XML file with an XSL stylesheet, or view the output from an XSLT transformation to HTML.
  310.  
  311.  
  312.  
  313. Displaying source code and Browser views:
  314. If you are using XML Spy for XHTML editing or if you have an XSL stylesheet associated with your XML document, you can display the browser view in a separate window.
  315.  
  316. This allows you to take a look at the document source in the Enhanced Grid or Text views and have the browser preview side-by-side, so that it can easily be refreshed directly from the editing view (just hit F5 in the editing view and the browser view is automatically updated).
  317.  
  318. The browser view also supports find and printing functions for when you want to document XML files that use CSS or XSL style-sheets, and offers the typical browser commands from both the Browser menu and toolbar: Back, Forward, Stop, Refresh.
  319.  
  320.  
  321.  
  322. .topic 31200
  323. XML Spy uses the familiar tree view to manage multiple files or URLs in XML projects. Files and URLs can be grouped into folders by common extension or any arbitrary criteria to allow easy structuring and batch manipulation.
  324.  
  325.  
  326.  
  327. Folders can correspond to physical directories on your file system, or you can define file-type extensions for each folder to keep common files in one convenient place.
  328.  
  329. Project folders are "semantic" folders, that represent a logical grouping of files and do not necessarily need to correspond to any hierarchical organization of the files on your hard disk into several directories.
  330.  
  331. Assigning XSL transformations to project folders
  332. You can assign different XSL transformation parameters to each folder and even have the same physical file present in more than one project folder - this is especially useful when you want to keep your data in one XML file and use different XSL stylesheets to produce different output (e.g. separate HTML and WML presentations).
  333.  
  334. Assigning DTDs / Schemas to project folders
  335. You can assign different DTDs or Schemas to different folders. This allows you to validate a file against both a DTD and an XML Schema without changing the file itself, which is useful when you are in the process of making the transition from DTDs to Schemas.
  336.  
  337. Use the commands on the Project menu to manage your projects.
  338.  
  339. .topic 31400
  340. XML Spy 3.5 helps you create valid XML documents by providing three palette-like windows that we call "entry helpers".
  341.  
  342. When you are working on an XML document based on a DTD or Schema, the built-in Intelligent Editing module constantly displays information on elements, attributes, and entities that can be inserted at the current cursor position, based on the information gathered from the Schema or DTD content model.
  343.  
  344. .topic 31401
  345. The element entry helper, allows you to insert a new element into your document by showing what elements are permissible at the current location.
  346.  
  347.  
  348.  
  349. You can choose to append an element, insert it before the selected element or add a child-element to the currently selected element. Depending on this context, the entry helper will automatically adjust its list of available choices.
  350.  
  351. Mandatory elements are automatically highlighted by an exclamation mark "!"
  352.  
  353. Elements that are allowed within the current parent element, but not at the position of the current selection, are shown in gray.
  354.  
  355. To insert an element:
  356. Double-click on the desired item.
  357. The corresponding element is inserted into the XML document, and the entry helper is automatically updated to reflect your new options.
  358.  
  359. Should you create a sequence of elements that violate the content model specified by your schema or DTD, the built-in incremental validating parser automatically detects this violation and displays its error message directly in the entry helper window.
  360.  
  361.  
  362.  
  363.  
  364. In the Schema Design View, this window is called the Particle Navigator, and displays information on Global Particles: elements, groups, complex types, simple types, attributes and attribute groups.
  365.  
  366. To display the content model of a particle:
  367. Click the particle type tab (Elm, Grp. etc.), and
  368. Double click on the desired particle, in the respective tab.
  369.  
  370. The content model appears in the main window as a graphic.
  371.  
  372.  
  373.  
  374.  
  375. .topic 31402
  376. A list of available attributes for the element you are currently editing, are shown in the second palette-window and offer the same functionality as the element entry helper.
  377.  
  378.  
  379.  
  380. Mandatory attributes are automatically highlighted by an exclamation mark "!"
  381.  
  382. Existing attributes that cannot be added to the current element a second time - are shown in gray.
  383.  
  384. In the Schema Design View, this window is called Details, and displays information on the currently selected element of the content model.
  385.  
  386. To change content model parameters:
  387. 1. Use the combo boxes to select different parameters, or
  388. 2. Double click into the respective row, and edit/enter text directly.
  389.  
  390.  
  391.  
  392.  
  393.  
  394. .topic 31403
  395. If you are editing DTDs or documents based upon a DTD content-model (such as XHTML), the entity entry helper presents a list of defined entities or parameter entities that you can insert within your document.
  396.  
  397.  
  398.  
  399. In the Schema Design View, this window displays further information on the currently selected element of the content model.
  400.  
  401. To change these content model parameters:
  402. 1. Use the combo boxes to select different parameters, or
  403. 2. Double click into the respective row, and edit/enter text directly
  404.  
  405.  
  406.  
  407. .topic 31300
  408. In addition to the entry helper windows, XML Spy provides a handy information window that shows the detailed information about the attribute or element that you are working on.
  409.  
  410.  
  411.  
  412. This information is available in all three editing views and can be a tremendous help in conjunction with the xsd:annotation feature of the new XML Schema draft, which allows a schema author to include comments or documentation on the use of each individual element or attribute into the schema itself.
  413.  
  414.  
  415. .topic 32000
  416. XML Spy supports all standard Windows commands on the File and Edit menus to enable the user to quickly exploit all capabilities of the program.
  417.  
  418. Wherever appropriate, additional commands have been added to support special XML- or Internet-related features (e.g. such as opening documents directly from an URL).
  419.  
  420. In addition to the standard menus, XML Spy contains many XML-specific menus that cover the different aspects of XML editing tasks.
  421.  
  422. .topic 32100
  423. The File menu contains all commands relevant to manipulating files with XML Spy, in the order common to most Windows software products.
  424.  
  425.  
  426.  
  427. In addition to the standard New, Open, Save, Print, Print Setup, and Exit commands, XML Spy offers special commands:
  428. open a document directly from a URL
  429. reload a file that may have changed
  430. switch the character-set encoding used by a file, and
  431. send a file by e-mail (only available, if a MAPI-compliant mail system, such as Microsoft Outlook, is installed).
  432.  
  433. .topic 32101
  434. The "New..." command is used to create a new document with XML Spy. You are presented a list of predefined document types that you can create:
  435.  
  436.  
  437.  
  438. Since XML is such a versatile and universal concept, there are many different kinds of XML documents that you can create and edit with XML Spy.
  439.  
  440. Opening files not available in the Create new document dialog
  441. If the document you want to create is not listed, simply select ".xml" and change the file extension when you save the file. You can also add new file types to this list using the File Type Settings dialog.
  442.  
  443. Assigning a DTD / Schema to a new XML document
  444. XML Spy contains built-in templates for most XML-based document types and will automatically provide you with a meaningful starting point instead of a totally empty file (e.g. a ".xhtml" file automatically includes the correct DOCTYPE reference to the XHTML DTD as well as an empty <html> element to start with).
  445.  
  446. The predefined templates are placed in the \Templates directory, automatically created one level below the XML Spy installation directory.
  447.  
  448. If you select the ".xml XML Document" entry, (typically a new XML instance document) in the above dialog, XML Spy prompts you for a DTD or Schema for the new file to be based upon:
  449.  
  450.  
  451.  
  452. To create an empty XML document:
  453. Select the File | New menu entry, and click the "Cancel" button in the New file dialog, which prompts for a DTD/Schema.
  454.  
  455. Defining the root element
  456. If you want to assign a DTD / Schema and the content model of the Schema or DTD contains more than one potential root element candidate, XML Spy asks you to select a root element from the list of possible candidates:
  457.  
  458.  
  459.  
  460. The new document is created with this element as its document root.
  461.  
  462. .topic 32102
  463. The "Open..." command, opens any XML-related document or text file from your PC. The familiar Windows "Open" dialog appears and allows you to select one or more files.
  464.  
  465.  
  466.  
  467. Use the "Files of type" combo box to select which kind of files you want to be displayed in the dialog (the list of available file types can be configured through the File Type page on the Settings dialog).
  468.  
  469. After the file has been read into memory, the character-set encoding used within the file will be auto-detected by XML Spy and the file decoded accordingly.
  470. If the character-set used to encode the file, differs from the encoding-specification in the XML-declaration in the prolog, an error message is displayed and the file is automatically opened using the correct encoding.
  471.  
  472. Auto-checks on opening
  473. You may get an error message if your file is either not well-formed or invalid, and you have selected to perform automatic validation upon opening.
  474.  
  475. In this case the document will be opened in the appropriate view, an error message popup will be displayed with the details about the error detected, and the offending item will be highlighted in the window.
  476. In such a case simply fix the error and click on the   or   button to continue opening the file.
  477.  
  478. Opening Unicode files
  479. If you are using the Windows 95/98 version of XML Spy and have chosen to open a Unicode file, XML Spy converts the file to a Windows 98 code-page to be used for viewing and editing, as Windows 95/98 do not support Unicode on the operating system layer (for further information please see the Unicode chapter in the background information section). The conversion is done automatically according to the settings you provide in the "Encoding" tab of the Settings dialog.
  480.  
  481.  
  482. .topic 32103
  483. The "Open URL..." command, allows you to open non-local files from a URL (uniform resource locator) address.
  484.  
  485. To open an URL address:
  486. 1. Enter the URL in the URL field
  487. 2. Click the Browse button to see and navigate the directory structure of the server.
  488. 3. Double click the file you want to load, or select the file and click the OK button.
  489.  
  490. The file you open appears in the main window. If the XML file refers to a schema file that is also available in the same server directory, then the schema file will also be loaded into XML Spy.
  491.  
  492.  
  493.  
  494. The Up button moves you up one directory in the directory structure, while the New Folder button creates a new directory on the server if your access rights permit it.
  495.  
  496. The Browse function is only available on servers which support the following protocols:
  497. FTP
  498. HTTP
  499. HTTPS
  500. or servers supporting WebDAV
  501.  
  502. Password protected servers
  503. If the server you connect to is password protected the following dialog appears. Enter the required data and click the OK button to connect. You can also enter these data in the User and Password fields of the Open URL dialog, the Save check box, supplies these for the logon attempt.
  504.  
  505.  
  506. To give you more control over the loading process, you can choose to load the file through the local cache or a proxy server (which considerably speeds up the process, if the file has been loaded before).
  507.  
  508. To reload the file anew in every case, select the Reload radio button - when you are working with an electronic publishing or database system for example, and wish to view the live output using XML Spy.
  509.  
  510. Repositories
  511. Repositories supported by XML Spy come in three flavors:
  512. Generic version control systems, such as Microsoft Visual Source-Safe (or compatible products)
  513. Generic web servers, such as FTP or WebDAV servers; and
  514. Specialized XML or schema repositories, such as Tamino, TEXTML Server, Virtuoso, or XML Canon.
  515.  
  516. XML Spy currently supports Source-Safe and FTP servers, the other repository interfaces will be available in future versions.
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523. .topic 32104
  524. The Reload command, allows you to reload documents from the URL.
  525.  
  526. XML Spy automatically monitors all open files for changes made by other programs (or people) and automatically prompts you to reload such a file, if you have checked the corresponding box on the File page of the Settings dialog.
  527.  
  528. This option is useful for documents that you open through a URL, which are dynamically created. This command is rarely used when working on documents that are accessed as files on your local hard disk or through a network file server.
  529.  
  530. .topic 32105
  531. The "Encoding..." command, lets you view the current encoding of a file and select a different encoding when saving the current document the next time.
  532.  
  533.  
  534.  
  535. If you select a different encoding than the one in use before, the encoding-specification in the XML-declaration in the prolog will be adjusted accordingly. For 16-bit and 32-bit per character encodings (UTF-16, UCS-2, and UCS-4) you can also specify the byte-order to be used for the file.
  536.  
  537. You can also enter the new encoding into the encoding-specification of the XML-declaration. When saving a document, XML Spy automatically checks the encoding-specification and opens a dialog if it cannot recognize the encoding name entered by the user.
  538.  
  539. If your document contains characters that cannot be represented in the selected encoding, you will get a warning message as soon as you save your file.
  540.  
  541.  
  542. .topic 32106
  543. The "Close" command, closes the active document window. If the file was modified (the file name is appended with an asterisk "*" in the title bar ), you will be asked if you wish to save the file first.
  544.  
  545. .topic 32107
  546. The "Close All" command, closes all open document windows. If any document has been modified (asterisk "*" appended to the file name in the title bar), you will be asked if you wish to save the file first.
  547.  
  548. .topic 32108
  549. The "Save" command, saves the contents of the active document to the file it has been opened from. If the document was opened from a URL, the Save as... dialog is opened, allowing you to save the document under a different name.
  550.  
  551. When saving a document in XML Spy, the file is automatically checked for well-formedness. All XML documents must be well-formed û otherwise they could not be interpreted by any other XML application. The XML-Declaration is also checked for an encoding specification and it is applied to the document when the file is saved.
  552.  
  553. You can optionally have XML Spy automatically validate a document upon saving (this can be defined in the File page on the Settings dialog).
  554.  
  555. If a validation error occurs, XML Spy will bring up a popup message with a detailed error explanation and will highlight the offending item. You can then choose to fix the problem or save the document as is. In the latter case, you will be prompted to correct the error the next time you open the file with XML Spy.
  556.  
  557.  
  558. .topic 32109
  559. The "Save As..." command shows the familiar Windows "Save as..." dialog to prompt for the name and location of the file that is to be saved. The same checks and validations occur as for the "Save" command.
  560.  
  561.  
  562.  
  563.  
  564.  
  565. .topic 32110
  566. The "Save All" command, saves all modifications that have been made to any open documents. The command is useful if you edit multiple documentations simultaneously.
  567.  
  568. If a document has never been saved (e.g. after using the New command), the Save as... dialog is presented for that document.
  569.  
  570.  
  571.  
  572. .topic 32111
  573. The "Send by Mail" command, lets you create mail messages from any XML file, group of files (in the Project window), or selection within a file. To use this function you must be using a MAPI compliant e-mail system.
  574.  
  575.  
  576.  
  577. If you choose to send an entire file or group of files, they are always included as an attachment to the mail message:
  578.  
  579.  
  580.  
  581. Sending fragments or portions of documents
  582. When you want to send a fragment of an XML file, select the elements you wish to send in either Enhanced Grid View or Text View.
  583.  
  584. XML Spy gives you the choice of either creating an attachment file that contains only your current selection or simply sending the selection as XML text in the contents of the mail message.
  585.  
  586. Sending URLs by mail
  587. When you send an URL (from the project window) you are prompted if you want to first retrieve the document referred to by the URL and then send the file as an attachment, or if you wish to just include the URL so that the recipient of your message can access the document through the URL:
  588.  
  589.  
  590.  
  591. .topic 32112
  592. The "Print..." command, opens the "Print" dialog where you can control what appears on the printout. This dialog will contains different items, depending on the current view mode.
  593.  
  594.  
  595.  
  596. Enhanced Grid View options:
  597.  
  598. The "Types" group box allows you to select the items you wish to appear in the output. You can hide comments as well as processing instructions or DTD items. For an explanation of the item types, please refer to the XML specification.
  599. The "What" group box allows you to print the entire file or just the current selection.
  600. The "Expand" group box allows you to print the document as is, or as a document with all child elements expanded fully.
  601. The "Contents" group box you can decide to print the contents of all elements in a document, or you may also print only those elements that form the hierarchical "tree" structure of the document.
  602. This should, however, not be confused with the tree view on the left side of each document window, which is only used as a navigation aid on the screen and cannot be printed.
  603. In the "If contents are wider than page" group box you can decide what to do if the document is larger than one page of paper.
  604. -  The "Split pages" option, prints the entire document in its regular size and splits the contents on as many pages (both horizontally and vertically) as are required. These pages can later be glued together to form a poster.
  605. -  The "First page" option, is useful if your page is slightly narrow and most of the important information is contained on the left side, anyway. This will result in output that is split into vertical pages (as necessary). Only the first page is printed horizontally - the document is printed as one huge vertical strip.
  606. -  The "Shrink horizontally" option, reduces the size of the output, until it fits horizontally on the page. The output may, however, still span several pages vertically and is split accordingly.
  607. -  The "Shrink both" option, shrinks the document in both directions until it fits exactly on one sheet, thus making it useful for overviews.
  608. The "Print" button prints the document with the selected options.
  609. The "Preview" button opens a print preview window that lets you view the final output before committing it to paper.
  610. The "Print Setup" button opens the "Print Setup" dialog and allows you to adjust the paper format, orientation, and other printer options for this print job only.
  611.  
  612. If you choose the Preview button, XML Spy will show a miniature image of the pages  to be printed:
  613.  
  614.  
  615.  
  616. You can navigate within the preview mode using the "Next Page" and "Prev Page" buttons or "Zoom In" to take a close look at some details.
  617.  
  618. The "Print..." button lets you print the pages, whereas the "Close" button allows you to return to the previous dialog without starting the print process.
  619.  
  620. .topic 32113
  621. The "Print Setup..." command, displays the printer-specific "Print Setup" dialog, enabling you to set the paper format, orientation, and other printer options for all successive print jobs.
  622.  
  623.  
  624.  
  625. This is an example using an HP LaserJet 4 printer attached to the parallel port (LPT1:).
  626.  
  627. .topic 32114
  628. The list of most recently used files, shows the file name and path information for the nine most recently used files, which you can select with the mouse.
  629. ...
  630.  
  631.  
  632.  
  633. To access these files using the keyboard, press:
  634. ALT+F,1 to open the File menu, and select the first file in the list.
  635.  
  636.  
  637.  
  638. .topic 32115
  639. The exit command is used to quit XML Spy when you are finished working with your documents. If you have any open files with unsaved changes, XML Spy will automatically prompt you to save these changes.
  640.  
  641. XML Spy also saves modifications you have made to program settings, as well as information about the most recently used files and projects to the Registry, a message box appears during this process.
  642.  
  643.  
  644.  
  645.  
  646. .topic 32200
  647. The Edit menu contains all commands relevant to editing operations within XML Spy in the order common to most Windows software products.
  648.  
  649.  
  650.  
  651. In addition to the standard Undo, Redo, Cut, Copy, Paste, Delete, Select All, Find, Find next and Replace commands, XML Spy offers special commands to:
  652.  
  653. copy the selection to the clipboard as XML-Text,
  654. Copy as structured text, or
  655. copy an XPath selector to the selected item to the clipboard.
  656.  
  657. All commands can be applied while editing text, as well as while operating on whole items or even discontinuous selections of more than one item.
  658.  
  659. You can also edit XML Spy settings by clicking on the "Settings..." option in this menu.
  660.  
  661. .topic 32201
  662. Hotkey: CTRL + Z
  663.  
  664. The "Undo" command contains support for unlimited levels of Undo! Every action in XML Spy can be undone and it is possible to undo one command after another. The Undo history is retained after using the "Save" command, enabling you go back to a state the document was in before you saved your changes.
  665.  
  666. Please note:
  667. when you have turned on dynamic syntax coloring updates in the Text View and your operating system is using RichEdit 2.0 (i.e. earlier versions of Windows 95/98 and Windows NT 4.0), syntax coloring changes appear as undoable operations. If you want to avoid this, please update to RichEdit 3.0 or disable the dynamic syntax coloring update feature (for further information please see the background information on the RichEdit Component).
  668.  
  669.  
  670.  
  671. .topic 32202
  672. Hotkey: CTRL + Y
  673.  
  674. The "Redo" command, allows you to redo previously undone commands û thereby giving you a complete history of the work you have completed. You can step back and forward through this history using the Undo and Redo commands.
  675.  
  676. .topic 32203
  677. Hotkey: CTRL + X
  678.  
  679. The Cut command, copies the selected text or items to the clipboard and deletes them from their present location.
  680.  
  681. .topic 32204
  682. Hotkey: CTRL + C
  683.  
  684. The Copy command, copies the selected text or items to the clipboard. This can be used to duplicate data within XML Spy or to move data to another application.
  685.  
  686. Please note
  687. XML Spy provides two different commands for copying elements to the clipboard in a textual form: Copy as XML-Text and Copy as Structured Text.
  688.  
  689. You can use the Edit tab on the Settings dialog to choose which operation should be performed when you use the copy command on the Edit menu or the Ctrl-C shortcut.
  690.  
  691.  
  692.  
  693. .topic 32205
  694. Hotkey: CTRL + V
  695.  
  696. The Paste command, inserts the contents of the clipboard at the current cursor position.
  697.  
  698.  
  699.  
  700. .topic 32206
  701. Keyboard: Del.
  702.  
  703. The Delete command, deletes the currently selected text or items without placing them in the clipboard.
  704.  
  705. .topic 32207
  706. The "Copy as XML-Text command, lets you exchange data easily with other products that allow data manipulation on the XML source layer.
  707.  
  708. While editing your document in Enhanced Grid View, you may occasionally want to copy some elements to the clipboard in their XML-Text representation:
  709.  
  710.     <row>
  711.         <para align="left">
  712.             <bold>Check the FAQ</bold>
  713.         </para>
  714.         <para>
  715.             <link mode="internal">
  716.                 <link_section>support</link_section>
  717.                 <link_subsection>faq30</link_subsection>
  718.                 <link_text>XML Spy 3.5 FAQ</link_text>
  719.             </link>
  720.             <link mode="internal">
  721.                 <link_section>support</link_section>
  722.                 <link_subsection>faq25</link_subsection>
  723.                 <link_text>XML Spy 2.5 FAQ</link_text>
  724.             </link>
  725.         </para>
  726.     </row>
  727.  
  728. This command automatically formats text using the currently active settings for saving a file. These settings can be modified in the "Save File" section of the File tab of the Settings dialog).
  729.  
  730.  
  731. .topic 32208
  732. The " Copy as Structured Text" command, copies elements to the clipboard as they appear on screen. This command is useful for copying table-like data from the Enhanced Grid View as well as the integrated Database/Table View.
  733.  
  734. The copied data can be used within XML Spy as well as third-party products, enabling you to transfer XML data to spreadsheet-like applications (e.g. Microsoft Excel).
  735.  
  736.  
  737.  
  738. If you copy this table and paste it into Excel, the data will appear in the following way:
  739.  
  740.  
  741.  
  742. Please note:
  743. The results of this command depend on the way the information is currently laid out on screen. Using the same XML data (that served as an example for the Copy as XML-Text command) in the Enhanced Grid view with the Table view active, would result in the following:
  744.  
  745.     row    
  746.         para
  747.             align    bold    link
  748.             left     Check the FAQ    
  749.                 link
  750.                     mode       link_section    link_subsection    link_text
  751.                     internal   support         faq30              XML Spy 3.5 FAQ
  752.                     internal   support         faq25              XML Spy 2.5 FAQ
  753.  
  754.  
  755. The same data would be copied to the clipboard in the following format, with the Table view deactivated in the Enhanced Grid View.
  756.  
  757.     row    
  758.         para    
  759.             align    left
  760.             bold     Check the FAQ
  761.         para    
  762.             link    
  763.                 mode              internal
  764.                 link_section      support
  765.                 link_subsection   faq30
  766.                 link_text         XML Spy 3.5 FAQ
  767.             link    
  768.                 mode              internal
  769.                 link_section      support
  770.                 link_subsection   faq25
  771.                 link_text         XML Spy 2.5 FAQ
  772.  
  773.  
  774. .topic 32209
  775. The "Copy XPATH" command, copies the corresponding XPath Selector to the clipboard enabling you to paste it into XSLT documents or any other file that uses XPath.
  776.  
  777. When using XSLT it is very often necessary to enter so-called Selector strings that help in selecting an element or attribute from within another XML document. Selector strings are built according to the XPath definition, and XML Spy helps you to create XPath Selectors, by selecting the item you wish to address and choosing Copy XPATH from the Edit menu.
  778.  
  779.  
  780.  
  781.  
  782. .topic 32210
  783. Hotkey: CTRL + A
  784.  
  785. The "Select All" command, selects all the text of an item or all the items in an XML document, enabling successive commands to operate on the entire text or document at once.
  786.  
  787. .topic 32211
  788. Hotkey: CTRL + F
  789.  
  790. The "Find" command, allows you to search for any occurrence of a text string in your XML document. Depending on the view you are using, the Find command will have different options.
  791.  
  792.  
  793.  
  794. Enhanced Grid View find options:
  795.  
  796. Enter the text string to be searched for in the "Find what" field, or use the combo box to select from one of the last 10 search criteria. The Find what field can be left empty, to search for elements, attributes etc.
  797. The "Types" group box, allows you to select what kind of items you wish to include in the search. This allows you to e.g. skip comments as well as processing instructions or DTD items. For an explanation of the item types, please refer to the XML specification.
  798. The "Search in" group box, allows you to define if you want to search for the specified text in the (element or attribute) names of items, in their contents, or in both.
  799. The "Settings" group box, allows you to define a case-sensitive and/or match string search.
  800. The "Where" group box, allows you to define your the scope of the search.
  801. The "Direction" group box, allows you to specify the search direction.
  802. The "Set all" button, activates all the check boxes in the Types group box, the "Clear all" deactivates them.
  803.  
  804.  
  805.  
  806. .topic 32212
  807. Hotkey: F3
  808.  
  809. The "Find next" command, repeats the last Find command to search for the next occurrence of the requested text.
  810.  
  811. .topic 32213
  812. Hotkey: CTRL + H
  813. The "Replace" command, is only available in the Text and Enhanced Grid View, it features the same options as the Find... command and allows you to replace the target text by any other text string of your choice.
  814.  
  815.  
  816.  
  817. You can replace each item individually, or you can use the "Replace All" button to perform a global search and replace operation.
  818.  
  819. Please note:
  820. As a security precaution, the "Replace all" command shows each individual replacement operation in the Enhanced Grid view. You can interrupt the operation by pressing the <ESC> key. Each replacement, is recorded as a single operation that can be undone individually.
  821.  
  822.  
  823. .topic 32220
  824. The "Settings" command, allows you to define the global program settings in a tabbed dialog. These settings are saved in the registry, and apply to all current and future document windows.
  825.  
  826. The Apply button displays the changes in the currently open documents, and fixes the current settings. The changes are seen immediately in the background windows.
  827.  
  828.  
  829. .topic 32221
  830. The "File" tab defines the way XML Spy opens and saves XML documents. You can also find related settings in the Encoding tab.
  831.  
  832.  
  833.  
  834. Open/New file in Grid view
  835. You can choose to open an existing file or create a new file either in the Enhanced Grid View or in the text view. If you select the grid view, you can optionally show the tree structure, and automatically expand all lines at the same time.
  836.  
  837. Automatic reload of changed files
  838. If you are working in a multi-user environment, or if you are working on files that are dynamically generated on a server, you can instruct XML Spy to watch for changes to the files that you are currently editing. XML Spy will then prompt you to reload the file, whenever a change is detected.
  839.  
  840. Validation
  841. If you are using document type definitions (DTDs) or schemas to define the structure of your XML documents, you can automatically check the document for validity whenever it is opened or saved.
  842.  
  843. XML Spy can also cache these files in memory to save any unnecessary reloading (e.g. when the Schema being referred to, is accessed through a URL).
  844.  
  845. Project
  846. When you start XML Spy, you can open the last-used project automatically.
  847.  
  848. Save File
  849. XML Spy uses TAB-characters (0x09) to indent the individual elements forming the structure of the XML document. In certain situations this may be undesirable. Deactivate the "Indent elements using tabs" check box, if this is the case.
  850.  
  851. No formatting output for
  852. You can selectively turn off output formatting for certain elements, by entering them in the list box (e.g. necessary for xsl:attribute when you are editing XSL Stylesheets).
  853.  
  854. When saving an XML document, XML Spy includes a short comment <!-- Edited with XML Spy 3.5 http://www.xmlspy.com --> near the top of the file. This option can only be deactivated by licensed users.
  855.  
  856. Line breaks
  857. Line-breaks in the document file can be preserved so that the same characters will be used that were found when opening the file. You can choose to encode line breaks in any of the three possible forms (CR&LF for PCs, CR for the MacOS, or LF for Unix).
  858.  
  859.  
  860. .topic 32222
  861. The "File types" tab allows you to customize the behavior of XML Spy on a per-file-type basis.
  862.  
  863.  
  864.  
  865. Choose a file type from the "File types" list box, to customize the functions for that particular file type:
  866.  
  867. Windows Explorer settings
  868. You can modify the file type description and MIME-compliant content type used by Windows Explorer and you can define, if you want XML Spy to be the default editor for this file type.
  869.  
  870. XML Conformance
  871. XML Spy lets you edit XML files as well as non-XML files. You must define the XML-Conformance settings for each new file type you add. Since XML allows for special grammar rules when dealing with external Document Type Definitions (DTDs) and external parsed entities, the exact grammar to be used can also be set here. You should not modify these settings unless you are adding a new file type and are sure of what you are doing.
  872.  
  873. Default view
  874. You can define the default XML Spy view to be used, for each file type.
  875.  
  876. Grid view
  877. You can define if the Enhanced Grid View should automatically build tables.
  878.  
  879. Text view
  880. You can turn off syntax-coloring for particular file types.
  881.  
  882. Disable automatic validation
  883. If you are using partial XML-documents that are included in another file and cannot be validated individually, you can turn off automatic validation per file type.
  884.  
  885. Save empty elements in short <E/> format
  886. Some XML tools may have problems understanding the short <Element/> form for empty elements defined in the XML 1.0 Specification. You can instruct XML Spy to save elements in the longer (but nonetheless also valid) <Element></Element> form.
  887.  
  888. Add new file extension
  889. You can add new file types (or remove them) from the File types list, with the respective buttons.
  890.  
  891.  
  892.  
  893. .topic 32223
  894. The "Editing" tab defines the behavior of the Enhanced Grid View, when exchanging data using the clipboard and moving items with drag & drop.
  895.  
  896.  
  897.  
  898. Intelligent editing
  899. While editing documents, XML Spy provides Intelligent Editing based on these settings. You can also customize various aspects of the behavior of these Entry helpers here.
  900.  
  901. Default copy to clipboard in grid view as
  902. You can choose the format in which data will be exported to foreign applications using the clipboard. If you select XML-Text, the contents of the clipboard will be formatted and tagged just like the resulting XML file itself. The structured text mode attempts to format the clipboard contents as a table, for use in a spreadsheet or database application. This option does not affect the internal clipboard format that XML Spy uses for copying and pasting.
  903.  
  904. Table view
  905. You can also control, how XML Spy decides when to display repeating elements in the Table View.
  906.  
  907.  
  908. .topic 32224
  909. The "View" tab allows you customize the XML documents presentation.
  910.  
  911.  
  912.  
  913. Enhanced Grid view
  914. Collapsed elements in the Enhanced Grid View can be displayed in preview form. This displays the attributes and their values in gray in the same line as the element.
  915.  
  916. XML Spy lets you automatically apply the Optimal Widths command while editing, and lets you limit the maximum cell width and height.
  917.  
  918. Text view
  919. The Text View supports syntax-coloring, which can be updated dynamically while typing or be disabled entirely.
  920.  
  921. Browser view
  922. You can choose to see the browser view in a separate window, enabling side-by-side placement of the edit and browser views.
  923.  
  924. Program logo
  925. You can turn off the splash screen upon program startup, to speed up XML Spy.
  926.  
  927. Window title
  928. The window title for each document window can contain only file name, or the full path name.
  929.  
  930. .topic 32225
  931. The "Grid fonts" tab allows you to customize the appearance of text in the Enhanced Grid view.
  932.  
  933.  
  934.  
  935. Font face and script
  936. You can select the font face and size to be used for displaying the various items in the Enhanced Grid View. The same fonts are also used for printing and consequently only TrueType fonts can be selected.
  937.  
  938. Size
  939. If you want to use the same font size for all items, click on the "Use same for all" check box.
  940.  
  941. Styles
  942. The style and color can be set using the combo boxes. The current settings are immediately reflected in the list, so that you can preview the way your document is going to look.
  943.  
  944. In the Windows 95/98 version of XML Spy, it is possible to select a "Script" for some fonts. This is especially necessary when editing documents with a non-Roman writing systems. The script selected in the font settings dialog, needs to match the character set code-page selected when opening a document (i.e. when editing a Cyrillic  ISO-8859-5 document, the code-page being used to edit the file should be set to 1251 and the font script needs to be set to "Cyrillic").
  945.  
  946.  
  947. .topic 32226
  948. The "Text fonts" tab allows you to customize the appearance of text in the Text view.
  949.  
  950.  
  951.  
  952. Again you can choose the font face, style and size, but this time the same font, style and size is always being used for all elements. Only the color can be adjusted individually to provide full customization of the syntax coloring option.
  953.  
  954. Setting the background color is only supported when RichEdit 3.0 is available on your system.
  955.  
  956.  
  957. .topic 32227
  958. The "Colors" tab allows you to customize the colors used in the Enhanced Grid view, when viewing elements in the Database/Table view.
  959.  
  960.  
  961.  
  962. Example:
  963.  
  964.  
  965. Header unselected
  966. This option defines the color of the table header when deselected.
  967.  
  968. Header selected
  969. This option defines the color of the table header when selected.
  970.  
  971. Non-existing elements unselected
  972. This option defines the color of the empty elements when deselected.
  973.  
  974. Non-existing elements selected
  975. This option defines the color of the empty elements when selected.
  976.  
  977. In addition to the colors you define here, XML Spy uses the regular selection and menu color preferences set in the Display Settings on the Control Panel of your Windows installation.
  978.  
  979. .topic 32228
  980. The "Encoding" tab specifies the kind of character-set encoding to be used when creating new files, as well as the encoding to be assumed, when opening files that lack an encoding declaration.
  981.  
  982.  
  983.  
  984. Default encoding for new files
  985. The default encoding for new files can be pre-determined in the Settings dialog so that each new document is automatically created with a proper XML-declaration and includes the encoding-specification that you most commonly need.
  986.  
  987. The encoding for existing files will, of course, always be remembered independently of this setting and can only be changed by the "Encoding" command on the "File" menu.
  988. If a two- or four-byte encoding is selected as the default encoding (i.e. UTF-16, UCS-2, or UCS-4) you can also choose between little-endian and big-endian byte-ordering for the XML files.
  989.  
  990. Open/save files with unknown encoding as
  991. You can choose how an XML file is to be interpreted if the encoding-specification is missing, and the encoding cannot be auto-detected. In most cases this will very likely be UTF-8 or ISO-8895-1, even though the XML specification theoretically only allows UTF-8 files to lack an encoding-specification.
  992.  
  993. Open/save non-XML files in
  994. Sometimes is can be convenient to also use XML Spy for editing non-XML files (such as Active Server Pages (ASP) or similar web-related documents. Since these files do not contain any encoding statements, you must specify a default Windows Code Page to be used for access these files.
  995.  
  996.  
  997. .topic 32229
  998. The "XSL" tab allows you to define which program to use for XSL Transformations.
  999.  
  1000. XML Spy includes full support for XSL Transformations, and can either use the MSXML 3.0 parser or any external XSLT processor for this purpose.
  1001.  
  1002.  
  1003.  
  1004. Use Microsoft XML Parser (MSXML) 3.0
  1005. If you are using Internet Explorer 5 (i.e. the MSXML module) for XSLT processing, you must specify if the resulting output is to be transformed as an XML-compliant document (such as XHTML or WML), or non-XML compliant text files.
  1006.  
  1007. Use external XSL transformation program
  1008. If you are using an external XSL processor, you must specify a command-line string that is to be executed by XML Spy in order to initiate the XSL Transformation. In this case, use the following variables to build your command-line string:
  1009.  
  1010. %1    the XML instance document that is to be processed
  1011. %2    the output file that is to be generated
  1012. %3    the XSL Stylesheet to be used (optional, if the document contains an <?xsl-stylesheet ...?> reference
  1013.  
  1014. You can also choose to show the result of the external XSLT processor directly within XML Spy in a message box.
  1015.  
  1016. Please see the technical background information ons XSLT Processors for further details.
  1017.  
  1018. .topic 32300
  1019. XML Spy uses the familiar tree view to manage multiple files or URLs in XML projects. Files and URLs can be grouped into folders by common extension or any arbitrary criteria, allowing for easy structuring and batch manipulation.
  1020.  
  1021.  
  1022.  
  1023. Please see the description of the Project Window for a general introduction to the XML Spy project management.
  1024.  
  1025. Please note:
  1026. most project-related commands are also available on the context-menu, when you right-click on any item in the project window.
  1027.  
  1028.  
  1029. .topic 32301
  1030. Creates a new project in XML Spy.
  1031.  
  1032. If you are currently working with another project, a prompt appears asking if you want to close all documents belonging to the current project.
  1033.  
  1034. .topic 32302
  1035. Opens an existing project in XML Spy.
  1036.  
  1037. If you are currently working with another project, the previous project is closed first.
  1038.  
  1039. .topic 32303
  1040. Reloads the current project from disk.
  1041.  
  1042. If you are working in a multi-user environment, it can sometimes become necessary to reload the project from disk, as other users might have made changes to the project.
  1043.  
  1044. Please note:
  1045. XML Spy project (.spp) files are actually XML documents that you can edit like any regular XML File. This should only be attempted by advanced users!
  1046.  
  1047. .topic 32304
  1048. Closes the active project.
  1049.  
  1050. If the project has been modified, you will be asked if you want to save the project first.
  1051.  
  1052. When a project, or XML file is modified, an asterisk "*" is automatically appended to the file name in the title bar.
  1053.  
  1054. .topic 32305
  1055. Saves the current project.
  1056.  
  1057. .topic 32306
  1058. Adds files to the current project.
  1059.  
  1060. Use this command to add files to any folder in your project. You can either select a single file or any group of files (using CTRL + click) in the Open dialog.
  1061.  
  1062. If you are adding files to the project, they will be distributed among the respective folders based on the File Type Extensions defined in the Project Properties dialog.
  1063.  
  1064. .topic 32307
  1065. Adds a URL to the current project.
  1066.  
  1067. XML Spy also allows you to add URLs to a project. Whenever a batch operation is performed on a URL or on a folder that contains a URL item, XML Spy will retrieve the document from the URL , and perform the requested operation.
  1068.  
  1069. .topic 32308
  1070. Adds the active file to the current project.
  1071.  
  1072. If you have just opened a file from your hard disk or through an URL, you can add the file to the current project using this command.
  1073.  
  1074. .topic 32309
  1075. Adds the XML document and all related files to the project.
  1076.  
  1077. When working on an XML document that is based on a DTD or Schema, XML Spy also lets you  add both the XML document and all related files (e.g. the DTD and all external parsed entities it refers to) to the current project.
  1078.  
  1079. .topic 32310
  1080. Adds a new folder to the current project.
  1081.  
  1082. Use this command to add a new folder to the current project. You can also access this command from the context-menu when you right-click on a folder in the project window.
  1083.  
  1084. .topic 32311
  1085. The properties command lets you define important settings for any of the specific folders in your project.
  1086.  
  1087. To define the Project Properties for a folder:
  1088. 1. Right click on the folder you want to define the properties for, and
  1089. 2. Select the Properties... command from the context menu.
  1090.  
  1091. Please note:
  1092. if your project file is under source control, a prompt appears asking if you want to check out the project file (*.spp). Click OK, if you want to edit settings and be able to save them.
  1093.  
  1094.  
  1095.  
  1096. File extensions
  1097. The File extensions help to determine the automatic file-to-folder distribution that occurs when you add new files to the project (as opposed as to one particular folder).
  1098.  
  1099. Validate
  1100. Define the DTD or Schema document that should be used to validate all files in the current folder (Main Pages in this example).
  1101.  
  1102. XSL transformation of XML files
  1103. You can define the XSL Stylesheet to be used for XSL Transformation of all files in the folder.
  1104.  
  1105. If you are developing XSL Stylesheets yourself, you can also assign an example XML document to be used to preview the XSL Stylesheet in response to an XSL Transformation command issued from the stylesheet document, instead of the XML instance document.
  1106.  
  1107. Destination files of XSL transformation
  1108. For batch XSL Transformations, you can define the destination directory the transformed files should be placed in.
  1109.  
  1110. If you have added one file or URL to more than one folder in your project, you can use the properties command to set the default folder, whose settings should be used when you choose to validate or transform the file in non-batch mode.
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116. .topic 32312
  1117. Displays the file name and path for the nine most recently used projects, allowing quick access to these files.
  1118.  
  1119. Also note, that XML Spy can automatically open the last project that you used, whenever you start XML Spy. (Edit | Settings | File tab, Project | Open last project on program start)
  1120.  
  1121. .topic 32400
  1122. The XML menu contains all commands necessary for manipulating XML documents with XML Spy. You will find commands to insert or append elements, modify the element hierarchy, and set a namespace prefix for items.
  1123.  
  1124.  
  1125.  
  1126. You can also check documents for well-formedness or validate them against any  Schema or DTD.
  1127.  
  1128. .topic 32410
  1129. Inserts a new item directly before the currently selected one. In case of an attribute, it may appear a few lines before the current item as all attributes must immediately follow their parent element.
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135. .topic 32411
  1136. Hotkey: CTRL+SHIFT+I
  1137.  
  1138. Insert a new attribute before the selected item.
  1139.  
  1140. If the current selection is any element other than the first element, the attribute is inserted before the first element to satisfy the well-formedness constraints of XML.
  1141.  
  1142. .topic 32412
  1143. Hotkey: CTRL+SHIFT+E
  1144.  
  1145. Inserts a new element before the selected item.
  1146.  
  1147. If the current selection is an attribute, the new element is inserted before the first element to satisfy the well-formedness constraints of XML.
  1148.  
  1149. .topic 32413
  1150. Hotkey: CTRL+SHIFT+T
  1151.  
  1152. Inserts new text content before the selected item.
  1153.  
  1154. If the current selection is an attribute, the text is inserted before the first element to satisfy the well-formedness constraints of XML.
  1155.  
  1156. .topic 32414
  1157. Hotkey: CTRL+SHIFT+D
  1158.  
  1159. Inserts a new CDATA block before the selected item.
  1160.  
  1161. If the current selection is an attribute, the CDATA is inserted before the first element to satisfy the well-formedness constraints of XML.
  1162.  
  1163. .topic 32415
  1164. Hotkey: CTRL+SHIFT+M
  1165.  
  1166. Inserts new Comment before the selected item.
  1167.  
  1168. If the current selection is an attribute, the Comment is inserted before the first element to satisfy the well-formedness constraints of XML.
  1169.  
  1170. .topic 32416
  1171. Inserts new XML declaration <?xml version="1.0" encoding="UTF-8"?> before the selected item.
  1172.  
  1173. Please note:
  1174. Each XML document may only contain one XML declaration and it must appear at the very top of the file.
  1175.  
  1176. .topic 32417
  1177. Inserts a new Processing Instruction (PI) before the selected item.
  1178.  
  1179. If the current selection is an attribute, the PI is inserted before the first element to satisfy the well-formedness constraints of XML.
  1180.  
  1181. .topic 32418
  1182. Insert a Document Type Declaration - or more precisely, the DOCTYPE block for the internal subset of a Document Type Declaration (DTD) - before the selected item.
  1183.  
  1184. Please note:
  1185. The DOCTYPE block may only appear at the top of an XML instance document between the XML Declaration and the root element of the XML document.
  1186.  
  1187. You could also use the Assign DTD command instead, which lets you create a DOCTYPE statement that refers to an external DTD document.
  1188.  
  1189. .topic 32419
  1190. Inserts an external ID (SYSTEM or PUBLIC) into a DOCTYPE declaration before the selected item.
  1191.  
  1192. .topic 32420
  1193. Inserts an element declaration into a DOCTYPE declaration or into an external Document Type Definition (DTD) before the selected item.
  1194.  
  1195. .topic 32421
  1196. Inserts an attribute list declaration into a DOCTYPE declaration or into an external Document Type Definition (DTD) before the selected item.
  1197.  
  1198. .topic 32422
  1199. Inserts an entity declaration into a DOCTYPE declaration or into an external Document Type Definition (DTD) before the selected item.
  1200.  
  1201. .topic 32423
  1202. Inserts a notation declaration into a DOCTYPE declaration or into an external Document Type Definition (DTD) before the selected item.
  1203.  
  1204. .topic 32430
  1205. Appends a new item as the last item inside the parent of the currently selected item. This is useful whenever you want to add more than one item in sequence.
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211. .topic 32431
  1212. CTRL+I
  1213.  
  1214. Appends a new attribute after the last element within the same parent.
  1215.  
  1216. .topic 32432
  1217. CTRL+E
  1218.  
  1219. Appends a new element after the last element within the same parent.
  1220.  
  1221. .topic 32433
  1222. CTRL+T
  1223.  
  1224. Appends a new text content block after the last element within the same parent.
  1225.  
  1226. .topic 32434
  1227. CTRL+D
  1228.  
  1229. Appends a new CDATA block after the last element within the same parent.
  1230.  
  1231. .topic 32435
  1232. CTRL+M
  1233.  
  1234. Appends a new Comment after the last element within the same parent.
  1235.  
  1236. .topic 32436
  1237. Inserts a new XML declaration <?xml version="1.0" encoding="UTF-8"?> as the first item in a document.
  1238.  
  1239. Please note
  1240. Each XML document may only contain one XML declaration and that it must appear at the very top of the file.
  1241.  
  1242. .topic 32437
  1243. Appends a new Processing Instruction (PI) after the last element within the same parent.
  1244.  
  1245. .topic 32438
  1246. Appends a new Document Type Declaration - or more precisely, the DOCTYPE block for the internal subset of a Document Type Declaration (DTD) - after the last element within the same parent.
  1247.  
  1248. Please note, that a DOCTYPE block may only appear at the top of an XML instance document between the XML Declaration and the root element of the XML document.
  1249.  
  1250. .topic 32439
  1251. Appends an external ID (SYSTEM or PUBLIC) in a DOCTYPE declaration after the last element of the same parent.
  1252.  
  1253. .topic 32440
  1254. Appends an element declaration in a DOCTYPE declaration or in an external Document Type Definition (DTD).
  1255.  
  1256. .topic 32441
  1257. Appends an attribute list declaration in a DOCTYPE declaration or in an external Document Type Definition (DTD).
  1258.  
  1259. .topic 32442
  1260. Appends an entity declaration in a DOCTYPE declaration or in an external Document Type Definition (DTD).
  1261.  
  1262. .topic 32443
  1263. Appends a notation declaration in a DOCTYPE declaration or in an external Document Type Definition (DTD).
  1264.  
  1265. .topic 32450
  1266. Adds a child item to the currently selected element.
  1267. This is useful for adding attributes to an item or creating child elements.
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273. .topic 32451
  1274. Hotkey: CTRL+ALT+I
  1275.  
  1276. Inserts a new attribute as a child of the selected item.
  1277.  
  1278. .topic 32452
  1279. Hotkey: CTRL+ALT+E
  1280.  
  1281. Inserts a new element as a child of the selected item.
  1282.  
  1283. .topic 32453
  1284. Hotkey: CTRL+ALT+T
  1285.  
  1286. Inserts new text content as a child of the selected item.
  1287.  
  1288. .topic 32454
  1289. Hotkey: CTRL+ALT+D
  1290.  
  1291. Inserts a new CDATA block as a child of the selected item.
  1292.  
  1293. .topic 32455
  1294. Hotkey: CTRL+ALT+M
  1295.  
  1296. Inserts new Comment as a child of the selected item.
  1297.  
  1298. .topic 32456
  1299. This command is only available, when you are looking at a totally empty file...
  1300.  
  1301. Inserts a new XML declaration <?xml version="1.0" encoding="UTF-8"?> as a child of the selected item.
  1302.  
  1303.  
  1304.  
  1305. .topic 32457
  1306. Inserts a new Processing Instruction (PI) as a child of the selected item.
  1307.  
  1308. .topic 32458
  1309. This command is only available, if you are looking at a total empty file.
  1310.  
  1311. Inserts a Document Type Declaration - or more precisely, the DOCTYPE block for the internal subset of a Document Type Declaration (DTD) - as a child of the selected item.
  1312.  
  1313. Please note:
  1314. A DOCTYPE block may only appear at the top of an XML instance document between the XML Declaration and the root element of the XML document.
  1315.  
  1316. .topic 32459
  1317. Inserts an external ID (SYSTEM or PUBLIC) into a DOCTYPE declaration as a child of the selected item.
  1318.  
  1319. .topic 32460
  1320. Inserts an element declaration into a DOCTYPE declaration or into an external Document Type Definition (DTD) as a child of the selected item.
  1321.  
  1322. .topic 32461
  1323. Inserts an attribute list declaration into a DOCTYPE declaration or into an external Document Type Definition (DTD) as a child of the selected item.
  1324.  
  1325. .topic 32462
  1326. Inserts an entity declaration into a DOCTYPE declaration or into an external Document Type Definition (DTD) as a child of the selected item.
  1327.  
  1328. .topic 32463
  1329. Inserts a notation declaration into a DOCTYPE declaration or into an external Document Type Definition (DTD) as a child of the selected item.
  1330.  
  1331. .topic 32470
  1332. Converts an item to a different item type. Depending on the location of the item (not on its current kind), some or all options on the item type submenu may or may not be available. This operation can only be performed on one individual item, not on an element that contains any child elements.
  1333.  
  1334.  
  1335.  
  1336. If the operation would result in the loss of data (e.g. converting an attribute to a comment looses the attribute name), a brief warning dialog will appear.
  1337.  
  1338.  
  1339. .topic 32471
  1340. Converts the selected item into a new attribute.
  1341.  
  1342. .topic 32472
  1343. Converts the selected item into an element.
  1344.  
  1345. .topic 32473
  1346. Converts the selected item into text content.
  1347.  
  1348. .topic 32474
  1349. Converts the selected item into a CDATA block.
  1350.  
  1351. .topic 32475
  1352. Converts the selected item into a Comment.
  1353.  
  1354. .topic 32476
  1355. Converts the selected item to an XML declaration <?xml version="1.0" encoding="UTF-8"?>.
  1356.  
  1357. Please note:
  1358. Each XML document may only contain one XML declaration and it must appear at the very top of the file.
  1359.  
  1360. .topic 32477
  1361. Converts the selected item to a new Processing Instruction (PI)
  1362.  
  1363. .topic 32478
  1364. Converts the selected item to a Document Type Declaration - or more precisely, the DOCTYPE block for the internal subset of a Document Type Declaration (DTD).
  1365.  
  1366. Please note:
  1367. A DOCTYPE block may only appear at the top of an XML instance document between the XML Declaration and the root element of the XML document.
  1368.  
  1369. .topic 32479
  1370. Converts the selected item to an external ID (SYSTEM or PUBLIC) in a DOCTYPE declaration.
  1371.  
  1372. .topic 32480
  1373. Converts the selected item to an element declaration in a DOCTYPE declaration or in an external Document Type Definition (DTD).
  1374.  
  1375. .topic 32481
  1376. Converts the selected item to an attribute list declaration in a DOCTYPE declaration or in an external Document Type Definition (DTD).
  1377.  
  1378. .topic 32482
  1379. Converts the selected item to an entity declaration in a DOCTYPE declaration or in an external Document Type Definition (DTD).
  1380.  
  1381. .topic 32483
  1382. Converts the selected item to a notation declaration in a DOCTYPE declaration or in an external Document Type Definition (DTD).
  1383.  
  1384. .topic 32490
  1385. Moves the current element to the left by one level, thereby changing a child element into a sibling of its parent. This is also often referred to as the "Promote" command.
  1386.  
  1387. .topic 32491
  1388. Moves the current element to the right by one level, thereby turning it into a child element of the element directly above. This is also often referred to as the "Demote" command.
  1389.  
  1390. .topic 32492
  1391. When you are editing textual data, it is often convenient to insert a new sub-element that contains some text, which is already present in the document.
  1392.  
  1393. The Enclose in Element command lets you accomplish this with any text selection within another element. Once you select this command from the menu or toolbar, the currently selected text is cut from its parent element and inserted into a newly created child element.
  1394.  
  1395. If you are editing a document based on a Schema or DTD, you will automatically be presented with a list of valid choices for the kind of element you are allowed to insert in this position.
  1396.  
  1397. .topic 32493
  1398. This command checks the document for well-formedness by the definitions of the XML 1.0 specification. Every XML document must be well-formed and therefore XML Spy also automatically checks for well-formedness whenever a document is opened, saved, or the view mode is switched from Text to Enhanced Grid or Browser.
  1399.  
  1400. If the well-formedness check succeeds, a brief message is displayed at the bottom of the main window:
  1401.  
  1402.  
  1403.  
  1404. If any error is encountered during the well-formedness check, the source of the problem is highlighted and a corresponding error message is shown:
  1405.  
  1406.  
  1407.  
  1408. It is generally not permitted to save a mal-formed XML document, but XML Spy gives you a "Save anyway" option when the automatic well-formedness check upon saving fails. This is useful, when you want to suspend your work temporarily and resume it later, without being able to make the intermediate version of the file well-formed.
  1409.  
  1410. The Check well-formedness command normally operates on the active main window. You can also use the Check well-formedness command on any file, folder, or group of files in the active project window. Click on the respective folder, and then on the "Check well-formedness" icon.
  1411.  
  1412. .topic 32494
  1413. XML Spy can validate an XML document against the rules set forth in its Schema or Document Type Definition (DTD) or it can validate any XML Schema or DTD against the rules set forth in the corresponding specification.
  1414.  
  1415. XML Spy uses its built-in incremental validating parser that supports all major Schema dialects, such as DTD, DCD, XDR, XML-Data, BizTalk, and the new W3C XML Schema Definition Language (XSD) .
  1416.  
  1417. If the validation succeeds, a brief message is displayed at the bottom of the main window:
  1418.  
  1419.  
  1420.  
  1421. If an error is encountered during the validation, the source of the problem is highlighted and a corresponding error message is shown:
  1422.  
  1423.  
  1424.  
  1425. The Validate command also automatically includes a well-formedness check, so there is no need to first use the Check well-formedness command manually before validating a file.
  1426.  
  1427. Please note that you can use this command to validate XML instance documents and for validating XML schemas or DTDs.
  1428.  
  1429. This command normally operates on the active main window, but you can also use the Validate command on any file, folder, or group of files in the active project window, where you can also define the Schema or DTD to validate with on a per-folder basis in the project properties. Click on the respective folder, and then on the "Check well-formedness" icon.
  1430.  
  1431. .topic 32497
  1432. When you validate an XML document, XML Spy first tries to locate any reference to a supported schema dialect within the document. It then loads the corresponding schema or DTD into memory, and uses its definitions to validate your XML instance document.
  1433.  
  1434. Once the Schema or DTD has been loaded into memory, XML Spy also provides you with intelligent editing functions in the Info Window and Entry-Helpers.
  1435.  
  1436. As long as the XML instance document is open, XML Spy will also keep the Schema or DTD in memory (see the Flush Memory Cache command on the DTD/Schema menu).
  1437.  
  1438. .topic 32498
  1439. XML Spy supports all major Schema dialects, such as DTD, DCD, XDR, XML-Data, BizTalk, and the new W3C XML Schema Definition Language (XSD)
  1440.  
  1441. You can validate these schemas against their specification, to make sure that they can be used to create, edit, and validate XML instance documents that are based on these schemata.
  1442.  
  1443.  
  1444. .topic 32495
  1445. If you have modified the Schema or DTD that an open XML document is based upon, it is advisable to reload that Schema or DTD to update the intelligent editing information (such as the Entry-Helper and Info windows) presented in the XML document, to reflect your changes.
  1446.  
  1447.  
  1448. .topic 32496
  1449. To make working with XML namespaces a bit easier, XML Spy provides a "Set Namespace" command that lets you set the namespace identifier for a group of selected elements (including their child elements).
  1450.  
  1451.  
  1452.  
  1453. You can choose to set the namespace prefix on either elements, attributes, or both.
  1454.  
  1455. Please note:
  1456. Attributes don't need to have the same prefix as their parent elements, since attributes always inherit the element's namespace, if no prefix is given.
  1457.  
  1458. .topic 32500
  1459. XML Spy 3.5 contains many commands that let you operate with Schemas and Document Type Definitions (DTDs) efficiently.
  1460.  
  1461.  
  1462.  
  1463. You can:
  1464. Assign DTDs or Schemas to be used for validation with any XML instance document
  1465. Generate a Schema from an example XML document (or from a group of files in the project window)
  1466. Convert between all major schema dialects, and
  1467. Locate the definition of any element or attribute in the corresponding schema while editing your XML documents.
  1468.  
  1469. .topic 32501
  1470. This command allows you to assign a Document Type Definition (DTD) to an XML document to be used for Validation and Intelligent editing.
  1471.  
  1472. The command opens the Assign File dialog to let you specify the DTD file you wish to assign, and inserts the required DOCTYPE statement into your XML document:
  1473.  
  1474. <!DOCTYPE main SYSTEM "http://link.xmlspy.com/spyweb.dtd">
  1475.  
  1476.  
  1477.  
  1478. .topic 32502
  1479. This command allows you to assign a Schema to an XML document that is to be used for Validation and Intelligent editing.
  1480.  
  1481. The command opens the Assign File dialog to let you specify the XSD, XDR, or BizTalk schema file you wish to assign, inserts the required namespace declaration attributes into your XML document:
  1482.  
  1483. xmlns="http://www.xmlspy.com/schemas/icon/orgchart"
  1484. xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
  1485. xsi:schemaLocation="http://www.xmlspy.com/schemas/icon/orgchart http://schema.xmlspy.com/schemas/icon/orgchart.xsd"
  1486.  
  1487. The declarations generated by XML Spy depend on the Schema kind and - in case of the new W3C XML Schemas - also on the potential use of a targetNamespace in the Schema document.
  1488.  
  1489. .topic 32503
  1490. This command allows you to include another Document Type Definition (DTD) or external parsed entity into the internal subset of a document type definition, or in any DTD document. This is done by defining a corresponding external parsed entity declaration and using that entity in the following line:
  1491.  
  1492. <!ENTITY % navigation.dtd SYSTEM "S:\xml\navigation.dtd">
  1493. %navigation.dtd;
  1494.  
  1495. The command opens the Assign File dialog to let you specify the DTD file you want to include in your DTD.
  1496.  
  1497.  
  1498. .topic 32504
  1499. This command is available in the Text view.
  1500.  
  1501. If your XML instance document is based on a certain Document Type Definition (DTD) use this command to open the corresponding DTD file.
  1502.  
  1503.  
  1504. .topic 32505
  1505. This command is available in the Text view.
  1506.  
  1507. If your XML instance document is based on a certain Schema use this command to open the corresponding Schema definition file.
  1508.  
  1509. .topic 32506
  1510. "Go to Definition" icon  .
  1511.  
  1512. This command is available in the Enhanced Grid and Text view.
  1513.  
  1514. While editing an XML document it can be useful to look up the exact definition of an element or attribute in the corresponding Document Type Definition or Schema document.
  1515.  
  1516. To see the item definition in Enhanced Grid view:
  1517. 1. Click left on the item.
  1518. 2. Select the menu item DTD/Schema | Go to Definition, or click on the icon.
  1519.  
  1520. To see the item definition in Text view:
  1521. 1. Click on the item definition in one of the Entry helper windows
  1522. 2. Select the menu item DTD/Schema | Go to Definition, or click on the icon.
  1523.  
  1524. In both cases, the corresponding DTD or Schema file is opened, and the item definition is highlighted.
  1525.  
  1526.  
  1527.  
  1528. .topic 32507
  1529. If you are defining a new schema or DTD it is often helpful to create a few example XML documents as a starting point.
  1530.  
  1531. XML Spy then allows you to generate a new schema from an XML document (or from a set of documents in the project window).
  1532.  
  1533.  
  1534.  
  1535. If you are targeting one of the modern schema kinds (e.g. XSD or BizTalk), XML Spy can automatically detect datatypes (such as date, time, number, uri, etc.) being used in your XML documents and create the corresponding restrictions in the schema.
  1536.  
  1537. XML Spy will also optionally detect typical enumeration scenarios, where an element or attribute can only contain items from a predefined list of values.
  1538.  
  1539. This command normally operates on the active main window, but you can also use the Generate DTD/Schema command on any file, folder, or group of files in the active project window.
  1540.  
  1541. .topic 32508
  1542. In the of ever-changing world of schema versions it is important to have a tool at hand that can easily convert your content model between the various schema dialects.
  1543.  
  1544.  
  1545.  
  1546. Open your existing Schema or DTD, and use this command to convert your DTDs into XML Schemas compliant with the Oct. 24 2000 CR  - or the other way round.
  1547.  
  1548. .topic 32509
  1549. To speed up validation and intelligent editing, XML Spy caches all recently used DTD, external parsed entity, and Schema documents in memory. Information from these documents is also displayed, when you are using the Go to Definition command.
  1550.  
  1551. If memory is tight on your system, or if you have been using many different documents based on different schemas recently, use this command to flush all cached Schema and DTD documents from memory.
  1552.  
  1553. .topic 32600
  1554. The eXtensible Stylesheet Language (XSL) and in particular the XSL Transformation (XSLT) lets you specify, how an XML document should be converted into other XML documents or text files, such a HTML, XHTML, or WML pages.
  1555.  
  1556. XML Spy supports XSL and XSLT through both its Intelligent editing features in the Text and Enhanced Grid Views, as well as through a set of commands that lets you perform common XSL-related operations.
  1557.  
  1558.  
  1559.  
  1560. Please see the technical background information on XSLT Processors for further details.
  1561.  
  1562. .topic 32601
  1563. Hotkey: F10
  1564.  
  1565. To perform an XSL Transformation of any XML document, XML Spy can either use the Microsoft-supplied MSXML module or you can specify an external XSLT processor in the XSL tab on the Settings dialog (Select Edit | Settings to open this dialog.)
  1566.  
  1567. If your XML document contains a reference to an XSL stylesheet, which can be assigned using the Assign XSL command, the it is automatically used by the XSLT transformation command. Alternatively, you can also define the XSLT stylesheet to transform from, on a per-folder basis in the project properties (Select Project | Project Properties to open this dialog).
  1568.  
  1569. This command generally operates on the currently active main window, but you can also use the XSL Transformation command in batch-processing mode on any file, folder, or group of files in the active project window.
  1570.  
  1571. Please see the technical background information ons XSLT Processors for further details.
  1572.  
  1573. .topic 32602
  1574. This command allows you to assign an XSL stylesheet to an XML document to be used for XSL Transformation or rendering by any XML-compatible browser.
  1575.  
  1576. The command opens the Assign File dialog to let you specify the XSL or XSLT file you want to assign, and inserts the required processing instruction into your XML document:
  1577.  
  1578. <?xml-stylesheet type="text/xsl" href="http://link.xmlspy.com/main.xsl"?>
  1579.  
  1580.  
  1581.  
  1582. .topic 32603
  1583. If your XML document contains a reference to an XSL stylesheet, this command lets you  open the corresponding XSL or XSLT document.
  1584.  
  1585. .topic 32700
  1586. XML Spy 3.5 provides powerful data exchange functions that allow you to convert back and forth between text, word processor, database, and XML files.
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592. .topic 32701
  1593. This command lets you import any structured text file into XML Spy and convert it to XML format immediately. This is useful when you want to import legacy data from older systems, as most software products support a text export interface of some kind.
  1594.  
  1595.  
  1596.  
  1597. Unicode conversion
  1598. In order to convert the data into Unicode (the basis of all XML documents), you need to specify which character-set the file is currently encoded in.
  1599.  
  1600. For US or Western European Windows systems this will most likely be Codepage 1252, also referred to as the ANSI encoding. If you are importing 16-bit or 32-bit Unicode (UCS-2, UTF-16, or UCS-4) files, you can also switch between little-endian and big-endian byte order.
  1601.  
  1602. Field Delimiter
  1603. To successfully import a text file, you need to specify the field delimiter that is used to separate columns or fields within the file. XML Spy will auto-detect common row separators (CR, LF, or CR+LF).
  1604.  
  1605. Text enclosed in
  1606. Text files exported from legacy systems sometimes enclose textual values in quotes to better distinguish them from numeric values. If this is the case, XML Spy lets you specify what kind of quotes are being used in your file, and removes them automatically when the data is imported.
  1607.  
  1608. First row contains field names
  1609. It is also very common for text files to contain the field names in the first row within the file. XML Spy allows you to define your XML element or attribute names according to this information.
  1610.  
  1611. Choose file
  1612. Click on the "Choose file" button to select the specific file to be imported, after having defined the import parameters. The file name will be retained the next time you use this dialog, allowing you to change settings and re-import the same file if the resulting XML file does not match your expectations.
  1613.  
  1614. Having selected the file to be imported, XML Spy provides a preview of the data import. Any changes in the above options will be reflected in the preview immediately.
  1615.  
  1616. Renaming field or column names
  1617. Rename a field or column name by clicking on its title and editing the name.
  1618.  
  1619. Attribute, Element, or no columns
  1620. XML Spy lets you choose if you want to import a column as an attribute, element, or if you'd rather skip the column entirely.
  1621.  
  1622. Click on the icons to the left of the column titles to, toggle between these three options. In the example above,
  1623.     ContactID and CallDate - are imported as attributes
  1624.     CallTime - is not imported
  1625.     Subject - is imported as an element.
  1626.  
  1627. .topic 32702
  1628. This command allows you to import database data from many sources. You can select an existing Microsoft Access (i.e. Jet Engine) file or specify any ActiveX Data Object (ADO) data source (such as SQL Server, Oracle, or any other ODBC-conformant database).
  1629.  
  1630.  
  1631.  
  1632. Source database
  1633. Once you have selected your data source, you can either choose a database table to be imported from a list. If you need help in entering an ADO connection string, click the Build button, which opens the ADO Data Link properties dialog.
  1634.  
  1635. Selection statement
  1636. Click on the "Choose database table" button, to select the database, or enter an arbitrary SELECT statement to create the record-set you intend to import.
  1637.  
  1638. Having configured the data source, click the Preview button to verify that this is indeed the correct data that you wish to import. For security reasons, the OK button is only enabled after you have previewed the data.
  1639.  
  1640. Format of Number, Date and Time values
  1641. XML Spy lets you choose different representations for date and number formats - depending on whether you intend to use the resultant XML file in conjunction with the new unified datatypes proposed by the most recent XML Schema draft, or if you want to keep those formats corresponding to the locale in use in your country.
  1642.  
  1643. Attribute, Element, or no columns
  1644. XML Spy lets you choose if you want to import a column as an attribute, element, or if you'd rather skip the column entirely.
  1645.  
  1646. Click on the icons to the left of the column titles, to toggle between these three options. In the example above,
  1647.     ContactID - is imported as an attribute
  1648.     Contacts.Company - is not imported
  1649.     FirstName, LastName - are imported as elements.
  1650.  
  1651.  
  1652.  
  1653. .topic 32703
  1654. This command allows you to directly import any Word document and convert it to XML format, if you have been using paragraph styles in Microsoft Word. This option requires Microsoft Word or Microsoft Office (Version 97 or 2000).
  1655.  
  1656. When you select this command, the Open dialog appears. Select the Word document you want to import.
  1657.  
  1658. XML Spy automatically generates an XML document with included CSS stylesheet. Each Word paragraph generates an XML element, whose name is defined as the name of the corresponding paragraph style in Microsoft Word.
  1659.  
  1660. .topic 32704
  1661. This command allows you to export XML data into other formats for exchange with databases or legacy systems.
  1662.  
  1663. Depending on the output data format required, you may want to use either XSLT Transformations or this Export command to export your XML data.
  1664.  
  1665. You first need to define the structure of the data to be exported. Since XML is structured hierarchically and most database and legacy systems use the relational model, XML Spy will help you in producing output that can be interpreted in a relational context.
  1666.  
  1667.  
  1668.  
  1669.  
  1670. Start point of export
  1671. You can choose to export the entire XML document or restrict your export to the data starting from the currently selected element (and its child items).
  1672.  
  1673. Export fields
  1674. Depending on your XML data, you may want to export only elements, attributes, or the textual content of your elements into the fields common to structured text files or databases.
  1675.  
  1676. The list of available element types, in the preview window, lets you choose which elements you want to export, and also displays you how many records and fields this will  produce once the export operation is started.
  1677.  
  1678. Export depth
  1679. You can choose to export all sub-elements, or limit the number of sub-element levels.
  1680.  
  1681. Automatic fields
  1682. XML Spy will produce one output file or table for each element type selected. You can choose to automatically create primary/foreign key pairs to link your data in the relational model, or define a primary key for each element.
  1683.  
  1684. When you are finished defining the scope of your export operation, click one of the two "Export" buttons, to export your data to a set of text files or to a database.
  1685.  
  1686. .topic 32705
  1687. This command allows you to specify the formatting of the text files to be exported.
  1688.  
  1689. If you are exporting  XML data to text files, you must specify the desired character-set encoding to be used and can also set the same options that are also available in the Import text file dialog.
  1690.  
  1691.  
  1692.  
  1693. The set of text files will be generated in the folder you specify, and each file name will be generated from the corresponding element name. You can also specify the file extension to be used.
  1694.  
  1695. .topic 32706
  1696. This command allows you to specify the type of database you want to export your data to.
  1697.  
  1698. You can select the destination database and the action to be performed:
  1699. Create a new Microsoft Access (Jet Engine) database file
  1700. Add the data to the tables in an existing Access file, or
  1701. Export the data to any other ADO-compliant database system (such as SQL Server or Oracle).
  1702.  
  1703.  
  1704.  
  1705. The Build button lets you create the necessary ADO connection string - for more information see the Import Database command and ADO connection string.
  1706.  
  1707. .topic 32800
  1708. The Table menu contains all commands relevant to the Database/Table View in XML Spy.
  1709.  
  1710. The Database/Table commands can only be selected if the Enhanced Grid view is active!
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718. .topic 32801
  1719. Hotkey: F9     icon:
  1720.  
  1721. This command  allows you switch between two ways of viewing repeated elements in the Enhanced Grid view. The Grid view(default view, in the Enhanced Grid view) and the Database/Table view.
  1722.  
  1723.  
  1724.  
  1725. Select the first element of any sequence of repeated elements, and use this command to display the elements in a tabular fashion. This will effectively break out all attributes and sub-elements, and show them as columns similar to any spreadsheet- or database-like application.
  1726.  
  1727. .topic 32802
  1728. Hotkey: SHIFT+F9    icon:
  1729.  
  1730. If you are displaying repeated elements in the Database/Table View, you can add new rows by:
  1731.  
  1732. 1. Clicking a row number in the table (or one of the cells), and
  1733. 2. Selecting the menu option Table | Insert row (or Shift+F9)
  1734.  
  1735. This inserts a new row (i.e. a new element) before the currently selected row.
  1736.  
  1737. .topic 32803
  1738. Hotkey: CTRL+F9    icon:
  1739.  
  1740. If you are displaying repeated elements in the Database/Table View, you can append a new row to the table by:
  1741.  
  1742. 1. Clicking a row number in the table (or one of the cells), and
  1743. 2. Selecting the menu option Table | Insert row (or Ctrl+F9)
  1744.  
  1745. This appends a new row (i.e. a new element) to the end of the table.
  1746.  
  1747.  
  1748. .topic 32804
  1749. Icon:
  1750.  
  1751. If you are displaying repeated elements in the Database/Table View, you can sort the column elements in ascending order by:
  1752.  
  1753. 1. Clicking a column header in the table, and
  1754. 2. Selecting the menu option Table | Ascending sort (or clicking on the A-Z icon)
  1755.  
  1756. XML Spy will automatically try to determine what kind of data you are using in the selected column, and choose an alphabetic or numeric sort method accordingly.
  1757.  
  1758. If XML Spy is not sure which sort order to use, it opens this dialog to prompt for help:
  1759.  
  1760.  
  1761.  
  1762. .topic 32805
  1763. Icon:
  1764.  
  1765. If you are displaying repeated elements in the Database/Table View, you can sort the column elements in descending order by:
  1766.  
  1767. 1. Clicking a column header in the table, and
  1768. 2. Selecting the menu option Table | Descending sort (or clicking on the Z-A icon)
  1769.  
  1770. XML Spy will automatically try to determine what kind of data you are using in the selected column, and choose an alphabetic or numeric sort method accordingly.
  1771.  
  1772. If XML Spy is not sure which sort order to use, it opens this dialog to prompt for help:
  1773.  
  1774.  
  1775.  
  1776.  
  1777. .topic 32900
  1778. The View menu controls the display of the active Main window and allows you to change the way XML Spy displays your XML documents.
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784. .topic 32901
  1785. Icon:
  1786.  
  1787. This command switches the current document into Enhanced Grid View.
  1788.  
  1789. This view includes an (optional) tree and structured grid display and is the preferred view for editing XML documents. If the previous view was the Text View, the document is automatically checked for well-formedness.
  1790.  
  1791.  
  1792.  
  1793. Embedded Database/Table view
  1794. XML Spy allows you to display recurring elements in a Database/Table view from within the Enhanced Grid view. This function is available wherever the Enhanced Grid view can be activated, and can be used when editing any type of XML file - XML, XSD, XSL etc.
  1795.  
  1796. For further information on this view, please see the detailed description of the various views in the Main Window section in the XML Spy Reference.
  1797.  
  1798. .topic 32902
  1799. Icon:
  1800.  
  1801. This command switches the current document into Text View.
  1802.  
  1803. This view allows you to edit the XML source in a source-code fashion and includes syntax-coloring. If the previous view was the Enhanced Grid View, the document is automatically formatted according to the settings defined when saving a file (these can be modified in the "Save File" section of the File tab of the Settings dialog). Use the menu command Edit | Settings to open this dialog.
  1804.  
  1805.  
  1806.  
  1807. For further information on this view, please see the detailed description of the various views in the Main Window section in the XML Spy Reference.
  1808.  
  1809. .topic 32903
  1810. Icon:
  1811.  
  1812. This command switches the current document into Browser View.
  1813.  
  1814. This view uses an XML-enabled browser (preferably Internet Explorer 5) to render the XML document using information from potential CSS or XSL style-sheets.
  1815.  
  1816. When switching to browser view, the document is first checked for validity, if you have selected Validate upon saving in the File tab of the Settings dialog). Use the menu command Edit | Settings to open this dialog.
  1817.  
  1818.  
  1819.  
  1820.  
  1821. For further information on this view, please see the detailed description of the various views in the Main Window section in the XML Spy Reference.
  1822.  
  1823. .topic 32904
  1824. This command  allows you to synchronize the Enhanced Grid view and Tree view in the main window, to locate an item in a large document.
  1825.  
  1826. To see the Tree view, you must activate the "Show Tree" checkbox in the File tab of the Settings dialog). Use the menu command Edit | Settings to open this dialog.
  1827.  
  1828. Click an item in the Tree or Grid view, and select the menu option View | Synchronize. The view in the other window is opened to the same level, and the item is highlighted..
  1829.  
  1830. You can also double-click on an element in the tree view, to navigate to that item in the grid.
  1831.  
  1832. .topic 32905
  1833. Hotkey: Num +        icon:
  1834.  
  1835. This command  expands the selected element by one level.
  1836.  
  1837. The command can be used in the Tree and Enhanced Grid views. The keyboard shortcut is the + key on the numeric keypad.
  1838.  
  1839. In the Enhanced Grid view, the element and all its children remain selected after expansion. This allows you to expand a large element by pressing the + key repeatedly.
  1840.  
  1841. You can expand and collapse any element by clicking on the gray bar to the left of each element.
  1842.  
  1843. .topic 32906
  1844. Hotkey: Num +        icon:
  1845.  
  1846. This command  collapses the selected element by one level.
  1847.  
  1848. The command can be used in the Tree and Enhanced Grid views. The keyboard shortcut is the - key on the numeric keypad.
  1849.  
  1850. You can expand and collapse any element by clicking on the gray bar to the left of each element.
  1851.  
  1852. .topic 32907
  1853. Hotkey: Num *        icon:
  1854.  
  1855. This command  expands all child items of the selected element, down to the last level of nesting.
  1856.  
  1857. The command can be used in the Tree and Enhanced Grid views. The keyboard shortcut is the * key on the numeric keypad.
  1858.  
  1859.  
  1860. .topic 32908
  1861. Hotkey: CTRL -        icon:
  1862.  
  1863. This command  allows you to focus on one element and its children, and ignore all the other surrounding elements.
  1864.  
  1865. The command can be used in the Tree and Enhanced Grid views. The keyboard shortcut is the CTRL and - key on the numeric keypad.
  1866.  
  1867. Simply select the item that you want to work with and choose this command to collapse all other (unselected) elements.
  1868.  
  1869. .topic 32909
  1870. Icon
  1871.  
  1872. This command  adjusts the widths of all columns so that the text of the entire document comfortably fits into the designated columns.
  1873.  
  1874. If you expand and collapse several elements, select the "Optimal widths" command, as only visible items are taken into account when calculating the optimum column widths.
  1875.  
  1876. .topic 32910
  1877. Hotkey: CTRL+G
  1878.  
  1879. This command  allows you go to a specific line number and/or character position in an XML document.
  1880.  
  1881. If you are working with an external XSLT processor (see the XSL page on the Settings dialog for details) you may often get error messages by line number and character position. XML Spy lets you quickly navigate to that spot, using this command:
  1882.  
  1883.  
  1884.  
  1885. This command works in both the Text View and Enhanced Grid View, but will only be able to show an approximate position in the grid view by highlighting the element closest to the character position specified.
  1886.  
  1887. .topic 32911
  1888. Icon:
  1889.  
  1890. This command  allows you to open a document that is being referred to, from within the file you are currently editing.
  1891.  
  1892. Select the file name, path name, or URL you are interested in, and choose this command from the View menu.
  1893.  
  1894. You can select:
  1895. An entire element or attribute in the Enhanced Grid View
  1896. Some characters from within any item in the Text or Enhanced Grid Views.
  1897. An enclosed string. If you cursor is between quotes, XML Spy will automatically use the entire string that is enclosed by the quotes.
  1898.  
  1899. .topic 33000
  1900. This menu contains commands that are only available when the Browser View has been activated.
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906. .topic 33001
  1907. This command  displays the previously viewed page. This can be useful if you click a link in your XML document and want to return to it.
  1908.  
  1909. .topic 33002
  1910. This command  is only available once you have used the Back command.
  1911.  
  1912. Use this command to retrace your steps.
  1913.  
  1914. .topic 33003
  1915. This command  instructs the browser to stop loading your document.
  1916.  
  1917. This is useful if large external files or graphics would be loaded over a slow Internet connection.
  1918.  
  1919. .topic 33004
  1920. This command  updates the Browser View by reloading the XML document and potential external CSS or XSL style-sheets as well as DTDs. You can also use the F5 key to trigger this command.
  1921.  
  1922. .topic 33005
  1923. This command allows you to select the default font site for rendering the text of your XML document. It is similar to the Font-Size command in most browsers.
  1924.  
  1925. .topic 33006
  1926. This command opens the browser view in a separate window, so that side-by-side viewing is possible. (eg. text or enhanced grid) view.
  1927.  
  1928. If you have separated the browser view, you can now press F5 in the editing view to automatically refresh the corresponding browser view.
  1929.  
  1930.  
  1931. .topic 33100
  1932. To organize the individual document windows in an XML Spy session, the Window menu contains standard commands common to most Windows applications.
  1933.  
  1934.  
  1935.  
  1936. You can cascade the open document windows, tile them, or arrange document icons once you have minimized them. You can also switch the various Entry Helper windows on or off (such as Project, Info, or Entry-Helpers) or switch to each open document window directly from the menu.
  1937.  
  1938. .topic 33101
  1939. This command rearranges all open document windows so that they are all cascaded (i.e. staggered) on top of each other.
  1940.  
  1941. .topic 33102
  1942. This command rearranges all open document windows as horizontal tiles, making them all visible at the same time.
  1943.  
  1944. .topic 33103
  1945. This command rearranges all open document windows as vertical tiles, making them all visible at the same time.
  1946.  
  1947. .topic 33104
  1948. This command lets you switch the Project Window on or off.
  1949.  
  1950. This is a dockable  window. Dragging on its title bar detaches it from its current position and makes it a floating window. Click right on the title bar, to allow docking or hide the window.
  1951.  
  1952. .topic 33105
  1953. This command lets you switch the Info Window on or off.
  1954.  
  1955. This is a dockable  window. Dragging on its title bar detaches it from its current position and makes it a floating window. Click right on the title bar, to allow docking or hide the window.
  1956.  
  1957. .topic 33106
  1958. This command lets you switch all three Entry-Helper Windows on or off.
  1959.  
  1960. All three Entry helpers are dockable windows. Dragging on a title bar detaches it from its current position and makes it a floating window. Click right on the title bar, to allow docking or hide the window.
  1961.  
  1962.  
  1963. .topic 33107
  1964. This command lets you switch all dockable windows on, or off:
  1965.  
  1966. the Project Window
  1967. the Info Window
  1968. the three Entry-Helper Windows
  1969.  
  1970. This is useful if you want to hide all non-document windows quickly, to get the maximum viewing area for the document you are working on.
  1971.  
  1972. .topic 33108
  1973. XML Spy lets you define your own toolbars, create new toolbars, and assign all major commands to toolbars to suit your personal editing style.
  1974.  
  1975.  
  1976.  
  1977. Use the Toolbars tab to define or modify the list of toolbars you would like to have. The New... button creates a new empty toolbar that you can then populate using the Commands tab. The Reset button allows you to return each toolbar to its predefined state.
  1978.  
  1979.  
  1980.  
  1981. The Commands tab lets you assign commands to toolbars by dragging the available command buttons to the toolbars on your screen.
  1982.  
  1983. You can select commands from many different categories and will always see a short description of each command in the dialog.
  1984.  
  1985. To remove a button from a toolbar, drag the button back to the customize dialog.
  1986.  
  1987.  
  1988. .topic 33109
  1989. This list shows all currently open windows and lets you quickly switch between them.
  1990.  
  1991.  
  1992.  
  1993. You can also use the Ctrl-TAB or CTRL F6 keyboard shortcuts to cycle through the open windows.
  1994.  
  1995. .topic 33200
  1996. The Help menu contains all commands required to get help or more information on XML Spy, as well as links to information and support pages on our web server.
  1997.  
  1998.  
  1999.  
  2000.  
  2001. The Help menu also contains the Registration dialog, which lets you enter your license key-code, once you have purchased the product.
  2002.  
  2003. .topic 33201
  2004. XML Spy 3.5 includes a context-sensitive online help system that is based on the Microsoft HTML Help Viewer and lets you directly access information on each menu command, dialog and window from within XML Spy.
  2005.  
  2006. Press the "F1" button on your keyboard to access the context-sensitive help for the currently open dialog, or press "F1" while you are browsing through the menus with your mouse.
  2007.  
  2008. All dialogs include a small question mark symbol (?)in their window title bar. Click on this symbol to access the context-sensitive help topic for that dialog.
  2009.  
  2010. If you would like to learn more about any topic, you can also use the Table of contents and Index commands on the Help menu or search through the entire text of the electronic documentation using the Search command.
  2011.  
  2012. .topic 33202
  2013. This command displays a hierarchical representation of all  chapters and topics contained in the online help system. Use this command to jump to the table of contents directly from within XML Spy.
  2014.  
  2015.  
  2016.  
  2017. Once the help window is open, use the three tabs to toggle between the table of contents, index, and search panes. The Favorites tab lets you bookmark certain pages within the help system.
  2018.  
  2019. .topic 33203
  2020. This command accesses the keyword index of XML Spy 3.5 Online Help. You can also use the Index tab in the left pane of the online help system.
  2021.  
  2022.  
  2023.  
  2024. The index, lists all relevant keywords and lets you navigate to a topic by double-clicking the respective keyword. If more than one topic matches the selected keyword, you are presented a list of available topics to choose from:
  2025.  
  2026.  
  2027.  
  2028.  
  2029. .topic 33204
  2030. The Search command lets you perform a full-text search on the entire text of the electronic documentation to access all the information available in the online help system.
  2031.  
  2032.  
  2033.  
  2034. Once you enter your search term into the query field and hit the Return key, the online help system displays a list of available topics that contain the search term you've entered.
  2035.  
  2036. Double-click on any item in the list to display the corresponding topic.
  2037.  
  2038. .topic 33205
  2039. When you start XML Spy for the first time, you are automatically presented with the Registration dialog, which lets you register your software product in order to be eligible for technical support and activate your license, which is done by entering a unique key-code to unlock the software.
  2040.  
  2041.  
  2042.  
  2043. FREE Evaluation Version
  2044.  
  2045. If you have downloaded the XML Spy from our web server and would like to activate your FREE 30-day evaluation version, please enter your name, company, and e-mail address and click on the "Request FREE evaluation key..." button. XML Spy then uses your Internet connection to transmit the information you have just entered to our web server, where a personal unique evaluation license will be generated for you. The license key-code, which is necessary to unlock your software, will then be sent to the e-mail address you have entered - it is therefore important, that you enter your real e-mail address in the registration dialog!
  2046.  
  2047. Once you have clicked the request button, please go to your favorite mail software and retrieve the license key-code from our e-mail message, which you should be receiving in a matter of a few minutes (depending on transient Internet conditions).
  2048.  
  2049. If you requested a key-code and it didn't arrive in a short space of time, the process may have failed due to Firewall restrictions in your network. If this is the case, please send a short message with your information via e-mail to evaluate@xmlspy.com and our support staff will generate a key-code for you manually.
  2050.  
  2051. When you have received your evaluation key-code, please enter it into the key-code field in the registration dialog and click on OK to start working with XML Spy.
  2052.  
  2053. Whenever you want to place an order for a licensed version of XML Spy, you can also use the "Order license key..." button in the registration dialog or the Order form menu command to proceed to the Secure XML Spy Online Shop on the Internet.
  2054.  
  2055. Licensed Version
  2056.  
  2057. If you have purchased a single-user license for XML Spy, you will receive an e-mail message from us that contains your license-data and includes your name, company and key-code. Please make sure that you enter all fields from your license e-mail into the registration dialog. The key-code will only be able to unlock your software installation, if the entries in the name and company fields match the name and company entered into our order form.
  2058.  
  2059. If your company has purchased a multi-user license for XML Spy, you will receive an e-mail message from us that contains your license-data and includes your company name and key-code.
  2060.  
  2061. Please make sure that you enter the company name and key-code from your license e-mail into the registration dialog and also enter your personal name into the name field. The key-code will only be able to unlock your software installation, if the value in the company field match the company name entered into our order form.
  2062.  
  2063. Please note that the XML Spy License-Agreement does not allow you to install more than the licensed number of copies of XML Spy on the computers in your organization (per-seat license).
  2064.  
  2065.  
  2066. .topic 33207
  2067. When you want to place an order for a licensed version of XML Spy, use this command or the "Order license key..." button in the registration dialog to proceed to the Secure XML Spy Online Shop on the Internet, where you can choose between different single- and multi-user license packs.
  2068.  
  2069. Once you have placed your order, you can choose to pay by credit card, send a check by mail, or use a bank wire transfer.
  2070.  
  2071. .topic 33208
  2072. If you have any questions regarding our product, please feel free to use this command to query to our support center on the Internet at any time. This is the place where you'll find links to the FAQ, support form, and e-mail addresses for contacting our support staff directly.
  2073.  
  2074. .topic 33213
  2075. To help you in getting the best support possible, we are providing a list of Frequently Asked Questions (FAQ) on the Internet, that is constantly updated as our support staff encounters new issues that are raised by our customers.
  2076.  
  2077. Please make sure to check the FAQ before contacting our technical support team. This will allow you to get help more quickly.
  2078.  
  2079. We regret that we are not able to offer technical support by phone at this time, but our support staff will typically answer your e-mail incidents within one business day.
  2080.  
  2081. If you would like to make a feature suggestion for a future version of XML Spy or if you wish to send us any other general feedback, please use the questionnaire form.
  2082.  
  2083.  
  2084. .topic 33209
  2085. The Components download option, currently lets you to download the latest Microsoft XML Parser, as well as an alternate XSLT Transformation System, and will be expanded in the future.
  2086.  
  2087.  
  2088. .topic 33206
  2089. This command takes you directly to the XML Spy web-server http://www.xmlspy.com where you can find out about news, product updates and additional offers from the XML Spy team.
  2090.  
  2091. .topic 33211
  2092. If you are located in Japan, you may prefer to contact our Japanese distributor on the Internet by using this menu command.
  2093.  
  2094. .topic 33212
  2095. This command shows the XML Spy splash screen and copyright information dialog, which includes the XML Spy logo.
  2096.  
  2097. Please note that this dialog always shows the version number 3.5 - to find the number of the actual build you are using, please look at the status bar, which always includes the full version and build number.
  2098.  
  2099. .topic 34000
  2100. The XML Spy toolbars contains symbols for the most frequently used menu commands.
  2101.  
  2102. For each symbol you'll get a brief "tool tip" explanation when the mouse cursor is directly over the item and the status bar shows a more detailed description of the command.
  2103.  
  2104. You can also drag the toolbars from their standard position to any location on the screen, where they will be available as a floating palette window. Alternatively you can also dock them to the left or right edge of the main XML Spy window.
  2105.  
  2106. Please note that XML Spy 3.5 lets you fully customize all toolbars to assign any frequently used command to an icon.
  2107.  
  2108. .topic 35000
  2109. Most dialogs in XML Spy are shown in response to a certain menu command or click on a toolbar button and are, therefore, explained in the individual chapters that describe the respective commands.
  2110.  
  2111. This chapter describes standard dialogs, that are used by more than one command.
  2112.  
  2113. .topic 35100
  2114. The Assign File dialog is opened by the Assign DTD, Assign Schema, or Assign XSL commands and prompts you for a file or path name to be used for the requested process:
  2115.  
  2116.  
  2117.  
  2118. You can either:
  2119. enter a path name into the text box
  2120. select from a list of most recently used filenames using the drop-down list
  2121. browse for a file on your computer (using the common Open dialog), or
  2122. use the Window button to select any currently open window or any file that is part of the current project.
  2123.  
  2124. .topic 35200
  2125. The Select File dialog lets you choose any currently open window or any file from your current project, as a convenient way to locate a file to be used for the various Assign commands.
  2126.  
  2127. Double clicking an entry in either window, places the file name in the Assign File  dialog box.
  2128.  
  2129.  
  2130.  
  2131. Both windows show the available files based on their extensions depending on which command was selected: Assign DTD, Assign Schema, or Assign XSL.
  2132.  
  2133. .topic 40000
  2134. Altova provides many services through our web site, which you can directly access from the Help Menu within XML Spy or through the help system.
  2135.  
  2136. Please visit our XML Spy Home Page frequently to learn about product updates, news, and other XML related information.
  2137.  
  2138. The Support Center shows available support options that you can access freely as a registered user.
  2139.  
  2140. The FAQ contains a collection of frequently asked questions and their answers. Please make sure that you check this resource, before submitting a new incident to our technical support staff.
  2141.  
  2142. Please fill in the Questionnaire to provide us with valuable feedback on how we can further improve our product or what additional features you'd like to see in a future version.
  2143.  
  2144. If you have been using the evaluation version and want to buy the fully licensed product, or if you need to purchase additional license for your colleagues, please visit our Order Pages to access our secure online shop.
  2145.  
  2146.  
  2147. .topic 50000
  2148. This chapter contains useful background information on the technical aspects of XML Spy. If you run across a technical term in the remainder of this help system you may occasionally find a link to some of the background materials provided here.
  2149.  
  2150. .topic 54000
  2151. Unicode is the new 16-bit character-set standard defined by the Unicode Consortium that provides a unique number for every character,
  2152.  
  2153. no matter what the platform,
  2154. no matter what the program,
  2155. no matter what the language.
  2156.  
  2157. Fundamentally, computers just deal with numbers. They store letters and other characters by assigning a number for each one. Before Unicode was invented, there were hundreds of different encoding systems for assigning these numbers. No single encoding could contain enough characters: for example, the European Union alone requires several different encodings to cover all its languages. Even for a single language like English, no single encoding was adequate for all the letters, punctuation, and technical symbols in common use.
  2158.  
  2159. These encoding systems used to conflict with one another. That is, two encodings used the same number for two different characters, or different numbers for the same character. Any given computer (especially servers) needs to support many different encodings; yet whenever data is passed between different encodings or platforms, that data always runs the risk of corruption.
  2160.  
  2161. Unicode is changing all that!
  2162. Unicode provides a unique number for every character, no matter what the platform, no matter what the program, and no matter what the language. The Unicode Standard has been adopted by such industry leaders as Apple, HP, IBM, JustSystem, Microsoft, Oracle, SAP, Sun, Base and many others.
  2163.  
  2164. Unicode is required by modern standards such as XML, Java, ECMAScript (JavaScript), LDAP, CORBA 3.0, WML, etc., and is the official way to implement ISO/IEC 10646. It is supported in many operating systems, all modern browsers, and many other products. The emergence of the Unicode Standard, and the availability of tools supporting it, are among the most significant recent global software technology trends.
  2165.  
  2166. Incorporating Unicode into client-server or multi-tiered applications and web sites offers significant cost savings over the use of legacy character sets. Unicode enables a single software product or a single web site to be targeted across multiple platforms, languages and countries without re-engineering. It allows data to be transported through many different systems without corruption.
  2167.  
  2168. Even though XML is clearly defined to be based on the Unicode standard, XML Spy is still one of the few XML development tools that fully implements Unicode!
  2169.  
  2170. .topic 54002
  2171. These Windows versions do not include full Unicode capabilities on the operating system layer. Instead support for non-roman writing-systems is provided through so-called code-pages that contain all the required characters mapped to either the available byte-values in the range of 0x80 to 0xFF (in case of single-byte systems, such as Cyrillic or Hebrew) or as double-byte values, where the first most significant bit of the first byte is typically used to indicate that this is a so-called "wide character" (in case of CJK writing-systems).
  2172.  
  2173. We therefore provider a special Windows 95/98/ME version of XML Spy that is automatically installed whenever you are using the Setup program on these operating systems. This version of XML Spy supports the following code-pages for viewing and editing XML documents (for excellent background information about code-pages please refer to http://czyborra.com/charsets/codepages.html):
  2174.  
  2175. Code-page    Equivalent XML Encoding
  2176. 1252    ISO-8859-1 (Western, Latin-1)
  2177. 1250    ISO-8859-2 (Eastern Europe, Latin-2)
  2178. 1251    ISO-8859-5 (Cyrillic)
  2179. 1253    ISO-8859-7 (Greek)
  2180. 1254    ISO-8859-9 (Turkish)
  2181. 1255    ISO-8859-8 (Hebrew)
  2182. 1256    ISO-8859-6 (Arabic)
  2183. 874    ISO-8859-11/TIS-620 (Thai)
  2184. 932    Shift-JIS (Japanese)
  2185. 936    GB2312 (Chinese)
  2186. 949    EUC-KR (Korean)
  2187. 950    Big5 (Taiwanese)
  2188.  
  2189. Whenever you open an XML file, XML Spy detects the character-set encoding used in that file, expands the file to an internal full Unicode representation and then transforms the document to a code-page supported by Windows 95/98 in order to enable viewing and editing of the document.
  2190.  
  2191. In most cases this process will be entirely automatic, as the available ISO-8895-x encodings as well as some of the CJK encodings often correspond with a certain code-page. However, if you open a Unicode encoded file (e.g. UTF-8 or UTF-16) XML Spy will be unable to determine which code-page to use and will thus bring up a dialog that asks you to specify a code-page to be used for editing.
  2192.  
  2193. In order to correctly view and edit a Unicode file under Windows 95/98/ME it is extremely important that you use this dialog to:
  2194.  
  2195. a)    choose the correct code-page that includes all characters contained in the file and
  2196. b)    later select a font and script from the settings dialog that also supports the same code-page.
  2197.  
  2198. If the file contains any characters that are not available in the selected code-page, the user will receive an error message including a detailed list of offending characters before they will be replaced by a '_' (underscore).
  2199.  
  2200.  
  2201.  
  2202. We therefore highly recommend using only the Windows NT/2000 version of XML Spy for editing XML files that make full use of Unicode!
  2203.  
  2204.  
  2205.