Enhance Schema Validation with XML ValidatorBuddy XMLSpy Plugin

Written by

in

The XML ValidatorBuddy XMLSpy Plugin is an integration tool that enhances the data validation capabilities of Altova XMLSpy. It embeds the core XML ValidatorBuddy engine directly into the XMLSpy user interface. This allows you to check business rules and utilize alternative XML validation engines without leaving your primary development environment. 🛠️ Core Features

Native Schematron Validation: Integrates ISO Schematron checking into XMLSpy. It enforces complex business rules that standard XSD (XML Schema Definition) constraints cannot catch alone.

Alternative Parser Testing: Enables quick document validation using external parsers like MSXML or Xerces directly from the XMLSpy toolbar. This allows you to test how third-party platforms will process your XML.

No Command-Line Required: Eliminates the need to copy file paths into a standalone DOS prompt or configure custom batch files to verify schemas. 📋 Methods for Assigning Schematron Schemas

The plugin allows you to assign a Schematron .sch schema to an active XML file in two ways:

Processing Instruction (PI): Add a directive directly to the XML header. <?valbuddy_schematron “using_report_element.sch”?> Use code with caution.

Project Folder Inclusion: Place the .sch file directly into the active XMLSpy project folder. The plugin automatically detects and makes it available via the built-in Schema Selector. 🚀 Key Validation Benefits Built-In XMLSpy Functionality Enhanced with ValidatorBuddy Plugin Primary Focus Structural compliance (XSD 1.0/1.1, DTD) Semantic compliance & custom business rules Rule Capabilities Basic element presence and data type restrictions

Conditional logic (e.g., “If Element A is ‘True’, Element B must be present”) Engine Testing Validates strictly with the internal Altova engine Switchable to Xerces or MSXML engines instantly 🔍 Error Diagnostics

When validation fails, errors appear in a dedicated output tab within XMLSpy. You can double-click any error message to automatically jump to the exact row and column of the invalid segment in the text editor. If you would like to proceed, let me know: Schematron validator in XMLSpy – xml-buddy.com

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *