Category Archives: XML

The main topic of this blog.

Support tales: Enable the “Configure batch task” command

One issue I have is the ‘Configure and run batch task’ is greyed out. Do I need to do anything to enable it? I have a batch XML settings file from my old laptop I want to load and test, but the option is greyed out. Sometimes people ask me how to enable the “Configure and run batch task” command… Read more »

Sign and verify XML digital signatures from the command-line

The XML ValidatorBuddy software package also includes a command line tool. The name of the executable is “valbuddy.exe” and the tool is also located in the standard installation folder of XML ValidatorBuddy. This command-line tool also supports sign and verify operations for multiple XML documents as a batch task. A sample settings XML to run a sign task would be: <?xml… Read more »

Convert JSON to XML from the command line

      No Comments on Convert JSON to XML from the command line

You can use the command-line tool included in the XML ValidatorBuddy package to convert JSON to XML. This allows you to quickly convert any number of JSON files and also to create a scheduled task which runs as a batch process (on your server). As usual the command-line tool needs a configuration XML to run the conversion. You can specify… Read more »

Integrate DITA Open Toolkit as external command

It is quite easy to use the DITA Open Toolkit from XML ValidatorBuddy as an external tool. The DITA standard is used to produce various output formats including HTML and PDF from XML. This usually happens with the help of Java and some ant tasks. To simplify the process the DITA Open Toolkit provides a batch task which only takes a… Read more »

Use XPath regular expressions to search in XML data

      No Comments on Use XPath regular expressions to search in XML data

The XML ValidatorBuddy editor provides a convenient search and replace window where you can quickly find any text in your XML or JSON data. But sometimes you want to have more control on where you are actually searching for a special string. Maybe you want to search only in XML attribute values or you want to get all elements with a… Read more »

How to debug Schematron validation

      No Comments on How to debug Schematron validation
How to debug Schematron

A Schematron validator is a powerful tool to run business rules for your XML data and to check conditions that are not supported using W3C schema. Schematron uses a lot of XPath and the validator is based on XSLT to apply all rules to the XML instance. But often it is not easy to debug a Schematron check if it does not work… Read more »

Transforming the XML validator batch log to HTML

      No Comments on Transforming the XML validator batch log to HTML

Having the results of the XML validator batch log output in XML format is nice but if you want to show the results to someone else you might prefer to use HTML. You can also publish the HTML documents automatically on your server and anyone who has access to the HTML can check the validation status of all XML data. XML… Read more »

Call XML validator for all *.xml files in folder

      No Comments on Call XML validator for all *.xml files in folder

I played around with the freeware AutoIt to create some scripts for XML Validator Buddy to automate certain validator tasks. As a first idea I wanted to call the XML validator for all files with *.xml as extension clicking a single button. The following steps are required: I had to fill the find field with “*.xml”. Send ENTER to the… Read more »

Tales from Support: Java VM not found

      No Comments on Tales from Support: Java VM not found

Sometimes people get a Java loading error on using the Schematron validator in XML ValidatorBuddy for the very first time. In addition the editor shows a warning in the Results window if Java can’t be loaded on starting the application. Usually it has one of three reasons if the Java runtime can’t be loaded: There is no Java runtime installed. In this… Read more »