Stop and Warning Nodes

Stop and Warning nodes are used to indicate exceptions to or special conditions encountered in an XML pipeline's execution. They serve a similar purpose, but behave in different ways.

Stop Nodes

Figure 422, for example, shows a Stop node piped to the Output invalid output port of the Validate node - if the validation using the XML Schema specified in the Validate node fails, the Stop node aborts XML pipeline processing, and a user-defined error message is generated. Stop nodes do not have an output port - XML pipeline processing ends if it encounters a Stop node.

Figure 422. Stop Node in retrieveData.pipeline

Warning Nodes

Note

 

You cannot use a Warning node in an XML Pipeline for which you plan to generate C# code.

Warning nodes, like the one shown in Figure 423, do have an output port. When encountered in XML pipeline processing, a Warning node generates the user-defined error message you give to it and pipes the input it is given through to the next node in the XML pipeline.

Figure 423. Example Warning Node Implementation

EDIFACT Sample Converted to XML

A sample EDIFACT document before and after conversion to XML, showing markup and full automatically-generated internal documentation.

XML Validator

Stylus Studio has a built-in XML validator that supports industry-standard DTD and XML Schema validators including MSXML 4.0 SAX, MSXML 4.0 DOM, Microsoft .NET XML Parser (System.XML), Xerces-J 2.5.1, XSV 2.6, etc. Validate XML with Stylus Studio.

Create XML Schema from XML Content

Create XML Schema from XML Content by auto-generating an XML Schema with Stylus Studio.

Advertising & Marketing

Learn about top advertising and marketing companies that are leveraging Stylus Studio 2006 to enhance their everyday work experience.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member