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.

Transforming Non-XML Documents with XML Tools

This pages has audio from the Stylus Studio Presentation at Exchange 2005.

Data Integration Tools: Using the Stylus Studio XML Pipeline to Visually Integrate and Publish Data

Data Integration Tools from Stylus Studio include a visual pipeline editor, support for non-XML data sources, scalable data integration components, cross-language debugging and Java code generation. Try it now.

Validating X12 Documents with XML Schemas

Either before or after transforming X12 EDI content, generated XML Schemas will make sure that we have all of the necessary components, our codes are all according to the standard codelists, and every little delimiter is in the right place.

XSLT Debugger

Stylus Studio's XSLT debugger - a requirement for building bug-free XSLT stylesheets and XML data transformation applications. Stylus Studio's XSLT debugger gives you complete visibility and control over the XSLT transformation process.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member