Updating XML Documents

Stylus Studio provides Text, Tree, and Grid views for updating any XML document you open. The view you choose for editing depends on how structured your data is and your personal preferences. This section describes how to choose an XML document view to work with and other features related to editing XML.

 

The XML editor Grid tab is available only in Stylus Studio XML Professional Edition.

This section discusses the following topics:

Choosing a View

You can add and modify the data and structure of an XML document in any view. When you switch to a different view, any changes you made appear in the new view. To move from view to view, click the Text, Tree, or Grid tab at the bottom of the document you are working with.

To add contents to an empty XML document, consider the structure of the data you plan to add. The Grid view is most useful for creating very structured data that includes multiple instances of the same elements. The Tree view makes it easy to add many different elements. In order to use it, however, the XML must be well-formed.

Each view of the document allows you to query the contents of the document. See Querying XML Documents Using XPath.

For More Information

To learn more about a specific XML view, see one of the following sections:

Saving Your Work

The procedure for saving your work is the same regardless of which view you use to edit XML - make sure your work is in the active window, and then select File > Save from the Stylus Studio menu bar, or click Save in the Stylus Studio tool bar.

Ensuring Well-Formedness

To ensure that your XML document is well formed, click the Tree tab at the bottom of the XML editor window.

If the document is well formed, Stylus Studio displays the tree representation. If the document is not well formed, Stylus Studio displays a message that indicates the reason the document is not well formed and the location of the error or omission. Correct the document, and click the Tree tab.

If you are already viewing the Tree representation of your document, the document is well formed. When you edit the Tree view, the XML that Stylus Studio generates is always well formed.

Reverting to Saved Version

You might make some changes to an XML document and then decide that you do not want to save them. In the Stylus Studio tool bar, click Reload . Stylus Studio displays a message that warns you that you will lose any changes, and prompts you to confirm that you want to reload the version of the document that is in the file system. After you confirm, Stylus Studio displays the last saved version of the document.

Updating Java Server Pages as XML Documents

To open a .jsp file as an XML document:
1. From the Stylus Studio menu bar, select File > Open.
2. Navigate to and select the JSP file you want to open.
3. To the right of Open, click the down arrow to display the Open With drop-down list.
4. Click XML Editor.

DTD Validator

This page talks about Stylus Studio's DTD Validator it has the ability to specify any third-party XML parsers and validators, real-time syntax checking and DTD validation error reporting, backmapping, integrating third-party DTD validators and more!

HTML Tidy

HTML Tidy is a program for turning HTML into something that can be parsed as XML, unlocking their data for use in XSLT and XQuery programs. Learn how to use HTML Tidy in Stylus Studio now.

Data Integration - DataDirect XML Converters

DataDirect XML Converters are high-performance Java components which provide bi-directional, programmatic access to virtually any data source as XML.

XQuery Profiler

Stylus Studio's XQuery Profiler allows you to benchmark any XQuery expression, and it helps you locate and eliminate performance bottlenecks for maximum XQuery performance.

Stylus Most Wanted

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.