@crescentone/node-red-contrib-xml-validation
v0.2.4
Published
Node-RED node node to validate xml content using xsd-schema-validator.
Downloads
35
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.
CrescentOne Fork
For us at CrescentOne the existing Node-RED XML validator node was not exactly what we needed. We ended up with errors that we could not solve using the node. We managed to work around of the isseus, but could not do this evolving our solution. We had to decide. Are we going to develope a new node? Or create a fork, respecting the Apache License 2.0 and send our thanks to @aleshh for the work done in his earlier project. We decided to choose the latter. Special thanks to our young tallented intern Xander van Hunen and our developer Ajan Renders for taking this first step. In line with the invitation of the original creator of this node - feel free to contribute or comment on the project, by submitting a pull request or opening an issue. Cheers. AVS.