@crescentone/node-red-contrib-xml-validatation
v0.2.2
Published
Node-RED node node to validate xml content using xsd-schema-validator.
Downloads
31
Readme
Node-RED XML Validator Node
A Node-RED node to validate XML strings against a specified XSD.
Requirements
- Node-RED
- Java SDK Kit
- All other requirements necessary for running Node-RED
Installation
- Run the following command in the root/node_modules directory of your Node-RED installation:
- npm install red-contrib-xml-validate
- Restart Node-RED
Usage
- Drag the XML Validator node onto the flow canvas
- Double-click the node to open its configuration screen
- Set the display name as desired
- Enter the path to the XSD file
- Connect the XML Validator node to an input node that outputs the XML string to
msg.payload
- The XML Validator node will look for the XML string in
msg.payload
- If the XML string is valid, the XML Validator node will output to output #1
- If the XML string is invalid, the XML Validator node will output to output #2
- If there is an error with the input, the XML Validator node will output to output #3
Contributing
Feel free to contribute to this project by submitting a pull request or opening an issue.