×
Menu

Batch configuration XML reference

 
Pease note: It is possible to edit the XML document to configure the batch task manually, but it is recommended to use the XML ValidatorBuddy Desktop application instead (as described here in detail) to simplify the creation of the XML settings.
 
<batch_settings>
The batch_settings element is the root element of the settings XML file. This element has no attributes and contains the batch_units element.
 
 
<batch_units>
This element contains other child nodes to set global parameters for all batch units and the sequence of batch_unit elements.
 
 
<log_document>
Attributes
path
Used to set the path including the file name of the output log document.
 
<options>
Attributes
close_logdoc
If the attribute is true the log document is closed after the batch process.
save_logdoc
True to save the log document automatically.
log_valid
If this attribute is set to false only invalid XML files will be reported.
timeout
Used to specify a timeout for the validation of each XML instance.
omit_time
The validation time for each file is not added to the log. This reduces the number of differences on comparing the log with a reference log.
omit_results
No detailed errors are reported in the log.
error_limit
Sets a limit for the number of reported errors for each file. Setting error_limit to 0 has the same effect as setting omit_results to true.
log_use_xinclude
If the batch task will create large log documents it is more efficient to write the log entries for all results as an included XML file. This can avoid "out of memory" conditions.
 
<batch_unit>
Attributes
type
Contains "validation", "well_formed_check" or "json_syntax_check" as the type of this batch task.
validator
Can contain "XercesC-SAX", "XercesC", "MSXML", "AltovaXML", "Schematron" or "RelaxNG" to set the validator. It is recommended to use "XercesC-SAX" for W3C schema and DTD validation.
external_schema
Path to external schema for Schematron or RelaxNG validation.
 
 
<folder_settings>
Attributes
path
Path to folder containing the files for the batch process.
subfolders
Set to true to include subfolders.
 
<file_extensions>
Only files with the file extensions listed in the file_extensions element will be used in the batch. The element includes a sequence of extension child nodes.
 
 
<extension>
The textual value of the extension element is taken as the file extension.