Thursday, March 6, 2008

Validating SCE XML files

The State based Correlation Engine (SCE) will not start without a valid XML file so after editing your SCE XML rules it would be a good idea to verify that they work.

On any system with libxml2 (xmlsoft.org) installed you can use the utility xmllint to validate an XML file with a specified DTD.
Example:
xmllint -dtdvalid tecsce.dtd tecroot.xml
If the file is valid the XML text will be sent to standard output and if the XML does not match the DTD error details are sent to standard error.

No comments: