|
Home > Online Product Documentation > Table of Contents > ConvertToXML and ConvertFromXML Nodes ConvertToXML and ConvertFromXML NodesConvertToXML nodes convert non-XML input (like a CSV file or an EDI message type) to XML; ConvertFromXML nodes convert XML input to a non-XML format. Both nodes use Stylus Studio built-in adapters or user-defined converters to convert input.
Specifying an Adapter URLBoth ConvertToXML and ConvertFromXML nodes are defined by specifying an adapter URL that evaluates to either a You can manually type a URL in the node's Adapter URL property, but the adapter URL syntax can be complex, and it is easy to make errors or to leave settings that you might wish to use unspecified. For example, a completely specified adapter URL for a CSV adapter might look like this:
The recommended way to specify an adapter URL is to select the built-in adapter or user-defined converter from the
Select XML Converter dialog box, which you display by clicking the
Adapter URL field, and then clicking the more button (
The value in the
URL field changes when you select an adapter. Properties and their settings (like
Creating a ConvertToXML NodeYou can create a ConvertToXML node manually, by dragging the ConvertToXML icon from the Toolbox pane and dropping it on the XML pipeline canvas. See Create a ConvertToXML Node for order.edi for a description of this procedure.
ConvertToXML nodes are created automatically if an adapter URL has been used as a data source for another document represented in the XML pipeline, or if you drag a converted document from the
Project window and drop it on the canvas. The
Input PortConvertToXML and ConvertFromXML nodes have a single input port that you use to specify the file to be converted to XML (or vice versa). You can specify a default value, or the value can be dynamic (the output from another node in the XML pipeline, for example). Output PortsConvertToXML and ConvertFromXML nodes have a single output port, used to specify what to do with the result of the transformation. You can For More InformationTo learn more about Stylus Studio built-in adapters and converter technology, see Chapter 3Converting Non-XML Files to XML. |
XML Notepad
XML Notepad simplifies building of XML applications, allowing authors to rapidly build and edit their XML files. With XML Notepad, you can create XML document prototypes quickly, easily, using an intuitive graphical interface.
XML-to-XML Mapper
XML to XML mapping tools in Stylus Studio provide a powerful visual interface for mapping XML data from-and-to virtually any data format using industry-standard XSLT and XQuery technologies.
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.
EDI to XML Mapping
A tutorial on how to transform EDI files into XML using Stylus Studio's Convert to XML tool. Subsequent post-processing of the converted EDI data is done through XQuery or XSLT, modeling a real world XML data integration application.


