home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _FA48D924B26A4A929601781439EE60BD / cshelp.txt < prev    next >
Encoding:
Text File  |  2003-04-04  |  112.6 KB  |  2,166 lines

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