Based on customer feedback I want to post some solutions for two very common Schematron checks. The first rule is an assertion to report if all values of an attribute are unique for all elements (within the same parent). Simply open XML ValidatorBuddy, create a new Schematron schema and add the following rule in the editor: <iso:pattern id=”unique name attributes”>… Read more »
Whenever you create some JSON output and want to make sure that the generated data is really parsable you can take the XML ValidatorBuddy editor to quickly check one or many JSON files with just a few clicks. Select the JSON documents you want to check in the built-in File Explorer window of XML ValidatorBuddy and use the “Check if JSON well-formed”… Read more »
Starting with release 4.0 of XML ValidatorBuddy the editor also offers an XML to JSON converter. You can do conversions from XML to JSON and also from JSON to XML with a single click. To convert multiple XML files use the built-in File Explorer window and select the documents you want to convert. Afterwards start the conversion with the “Convert XML to JSON” command… Read more »
Schematron is a powerful and useful technology to complement the standard W3C Schema and DTD validator in XML ValidatorBuddy. However, it is often complicated to configure an XML editor to apply a Schematron schema to any number of files in an easy to use and simple way. In this post I want to illustrate how easy it can be to apply a Schematron… Read more »
In contrast to many other tools XML Validator Buddy supports validation of XML files against W3C schema definitions without an explicit reference in the instance document. This is done using an XML catalog and an association based on the usage of namespaces in the instance document and the definition of a target namespace in the schema. XML Validator Buddy provides… Read more »
Get a detailed error report on XML validation Until today the free XML Validator Buddy shell tool, which uses the Xerces parser internally, only reported if the XML instance is valid or not. This has changed with the latest release 3.2.2 of the XML command line tool. Now it is also possible to get a detailed error report with the… Read more »
This post explains how to run the XML validator to use a specific schema in XML ValidatorBuddy to check XML. If you use the “Validate against a specific Schema…” functionality of XML ValidatorBuddy the editor looks for a schemaLocation or noNamespaceSchemaLocation attribute in the XML instance file. The validator also checks the selected schema if any targetNamespace is defined. If a schemaLocation or noNamespaceSchemaLocation… Read more »