Invoking XMLProbe from TextPad

To configure XMLProbe to run in TextPad, follow these steps:

  1. Start TextPad and select Configure|Preferences.

  2. Select Tools in the tree view.

  3. Click on the Add button and select DOS Command from the drop-down menu.

  4. In the dialog box, type

    java -jar path\to\xmlprobe.jar path\to\my-qa-rules-file $File

    replacing path\to with appropriate values.

    For best results, ensure that the output format for your QA ruleset is set to text.

  5. Click Apply, then select the newly created command in the refreshed tree view.

  6. Ensure that the field ‘Initial folder’ is set to $FileDir.

  7. In the field ‘Regular expression to match output’ enter:

    XMLProbe:\([^:]+\):\([0-9]+\):\([0-9]+\)
  8. Under Registers, set File to 1, Line to 2 and Column to 3.

  9. To run XMLProbe, open an XML file for processing in TextPad. Select Tools, then the new command you have created.

  10. TextPad will open a file called Command Results in the workspace, containing the output from the tool command. Where messages are generated by XMLProbe containing line and column numbers, click on the message to jump to the location in the source file.

Note

This approach has been tested with TextPad version 4.7.2.

See the step-by-step demo.

In order to view the demo, you need the Shockwave plugin for Flash.
Internet Explorer users can find the latest version of the plugin here.
Netscape users can find it here.