Validate XML activity

During run time, the Validate XML activity determines if the input XML data is valid to the specified XML Schema or WSDL.

The Validate XML activity has the following limitations:

Note: You must upload an XSD file (ends in the .xsd extension) that contains the XML Schema into the project before configuring the Validate XML activity. Upload the XML Schema into the project that is used to validate the XML data during run time.
The following table describes the result when an error or warning occurs when the Validate XML activity is parsing XML data against an XML Schema.
Table 1.
Error/Warning Type Description Example Result
Fatal Error Parsing of the XML data fails because of a severe problem and the parsing cannot continue. For example, the XML data is not valid to the XML Schema. The XML data is not valid to the XML Schema. For example, the XML Schema defines that there should be a root element called <d> but the XML data contains the root element called <a>. When a fatal error occurs, the current orchestration job stops processing— even the processing of the Validate XML activity does not complete. In addition, the activities in the orchestration after the Validate XML activity are not processed. The value returned from the Validate XML activity for the success output parameter is false but since the activity never completes, nothing is returned.
Error (recoverable) An error occurs during the parsing of XML data but it does not prevent the parsing of rest of the XML data. An XML element in an integer but a string is provided as a value: <a><count>two</count></a> If only recoverable errors or warnings occur during parsing, the processing of the Validate XML activity completes and the activities in the orchestration after the Validate XML activity are processed. The value of false is returned from the success output parameter.
Warning A warning occurs during the parsing of XML data but it does not prevent the parsing of rest of the XML data   If only warnings occur during parsing, the processing of the Validate XML activity completes and the activities in the orchestration after the Validate XML activity are processed. The value of true is returned from the success output parameter.



Feedback | Notices


Timestamp icon Last updated: Wednesday, 15 June 2016


http://pic.dhe.ibm.com/infocenter/wci/v7r0m0/topic/com.ibm.wci.doc/Validate_XML_activity.html