FreeXmlToolkit

Schema Support in FreeXmlToolkit

FreeXmlToolkit provides comprehensive XML schema validation and editing support through multiple schema technologies.

Supported Schema Formats

✅ XSD (XML Schema Definition)

Full Support - Complete W3C XML Schema implementation with advanced features:

Features Include:

✅ Schematron

Business Rules Validation - Support for constraint validation beyond structural validation:

Supported Schematron Features:

❌ Unsupported Schema Formats

DTD (Document Type Definition)

Not Supported - While DTD is a classic XML schema format, it is not currently supported in FreeXmlToolkit.

Reasons for Non-Support:

Alternative: Convert DTD to XSD format for use in FreeXmlToolkit

RelaxNG

Not Supported - RelaxNG is an alternative schema language that is not currently supported.

Reasons for Non-Support:

Alternative: Use XSD for structural validation or Schematron for business rules

Schema Integration Features

IntelliSense and Auto-Completion

When working with XML files that have associated XSD schemas:

  1. Context-Aware Suggestions: Type < to see only valid child elements for the current position
  2. Schema-Driven Completion: Suggestions are filtered based on XSD schema rules
  3. Real-time Validation: Immediate feedback when elements don’t conform to schema
  4. Automatic Schema Loading: Schemas referenced in XML files are automatically loaded

Validation Workflow

  1. Open XML File: Load an XML document in the editor
  2. Associate Schema: Either automatically detected or manually selected
  3. Real-time Feedback: See validation results as you type
  4. Error Reporting: Detailed error messages with line and column information
  5. Continuous Validation: Optional always-on validation mode

Documentation Generation

For XSD schemas specifically:

Best Practices

Choosing a Schema Format

Schema Organization

Migration Strategies

From DTD to XSD

  1. Use automated DTD-to-XSD conversion tools
  2. Manual refinement of converted schema
  3. Add data type constraints not possible in DTD
  4. Implement namespace support
  5. Test thoroughly with existing XML documents

From RelaxNG to XSD

  1. Analyze RelaxNG patterns and constraints
  2. Map patterns to equivalent XSD constructs
  3. Handle any RelaxNG features not available in XSD
  4. Add Schematron rules for complex constraints
  5. Validate conversion with test documents

Technical Implementation

XSD Support

Schematron Support

Future Roadmap

Planned Enhancements

Under Consideration


For more information about specific schema features, see the individual controller documentation.

Home XML Editor Features XSD Tools