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 »

Editor and validator for large XML

      No Comments on Editor and validator for large XML

Here are some figures to show how fast you can open and inspect huge XML data in XML Validator Buddy. We are using the massachusetts.osm (OpenStreetMap data) XML document which has a size of 2.5 GB and about 39 million lines of text. In XML ValidatorBuddy you can open it in the Large File Viewer window in 34s. You can do a complete… Read more »

JSON Schema editing – An introduction

      No Comments on JSON Schema editing – An introduction
auto completion for json schema

You might have noticed that JSON has become a quite popular text format over the last years. Especially for everyone who is working in a Java environment. But how do you check your JSON instance documents in a convenient and standardized way like you can do for any XML file? For this purpose JSON Schema was introduced. In order to… Read more »

How to convert Excel or Word to JSON

      No Comments on How to convert Excel or Word to JSON

The short answer is unzip the .xslx or .docx documents saved from Word or Excel, which are just ZIP archives with some XML data inside, and convert them in XML Validator Buddy using the “Convert XML to JSON” command 🙂 Please take a look at “XML to JSON conversions” to learn more about the powerful XML to JSON functionalities of… Read more »

Schematron: Check for unique attribute and element values

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 »

JSON well-formed checking

      No Comments on JSON well-formed checking
check json well-formed

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 »

XML – JSON converter

      No Comments on XML – JSON converter
XML to JSON options dialog

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 »

A Schematron sample: Count child nodes in batch mode for many files

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 »

Use XML validator without schemaLocation attributes

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 »