Knowledge Base
 

  

 

 

Knowledge Base
Previous  BackToCategory  Next  40 of 48
Use the Validate XML node

 

Summary
Requirements
Create a Process
Inserting a Process Variable into the Process
Inserting a Validate XML node into the Process
Connect the nodes
Save the Process
Run the Process

Summary

This article demonstrates how to use the Validate XML node.


Requirements

  1. Enterprise Enabler 2006 Server
  2. Process Designer


Create a Process

Open Enterprise Enabler and create a new process by clicking File » New » Process.




Inserting a Process Variable into the process

In the Toolbox menu go to Proc. Variables, select Proc. Variable and drag it into the process designer area. Rename the Proc. Variable to xml and click on the Click to read File Contents for Initial Value button on the top and then select the XML file. Create another variable and rename it to schema and then set it to the path of the XSD file. Create another variable and rename it to result.


Inserting a Validate XML node into the Process

In the Toolbox menu go to Action Nodes, select the Validate XML node and drag it into the process designer area. Select theValidate XML node and then select ellipsis of the VariableMappings property. Variable Mappings window appears. Select inputXMLand select xml variable in the drop down list under Process Variable Name. Repeat the process to assign schema variable toschemaLocation and result variable to validationResults. Click Done to exit the screen.




Connect the nodes

In the designer window drag the arrow of the connector from the Start node and drop it on the Validate XML node. Drag the arrow from the Validate XML node to the Stop node. The completed process should look like the following figure:




Save the Process

Click anywhere in the empty area on the designer window and rename the process in the Properties window.



To save the process click the Save button in the Standard toolbar.




Run the Process

Click on the Start the Process button in the Process Designer toolbar to run the process.


Previous  BackToCategory  Next  40 of 48
Copyright © 2010 by Stone Bond Technologies | Phone: +1 (713) 622-8798   |  Privacy Statement   |  Terms of Use