How-To do batch processing
Batch command
XML:Wrench includes a batch processing command. You can use this to perform an operation on all or a selection of the files in a folder. Available operations include: convert HTML to XML, check XML is well-formed and/or valid, transform using XSLT style-sheet, copy files and delete files.
To run a batch command select Tools|Batch... from the menu. A dialog is displayed:
First select the command you want to run. Then depending on the command chosen provide the options required on additional pages of the dialog. Most commands require a source file specification to be supplied.
The source file-specification is the location of a file or files. It can include wild-cards. For example *.xml to select all the xml files in a folder. You can also specify whether this command applies to a single folder or whether you want it to apply (recurse) to all child folders.
Some commands will also require a destination file-specification to be supplied. This works in much the same way as the source specification. If you use a wild card in the source, you will need to provide a similasr patter in the destination. A source specification of '*.xml' and a destination of '*.html' will create files of the same name as the source files but with the extension changed to .html.