Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

XML File - Validate Schema

XML File Command Grooper.EDI

Validates an XML document against an XML schema, and flags the document with any issues.

Remarks

The Validate Schema command checks the XML file attached to the current Batch Folder against a specified XML Schema Definition (XSD) file.

How it Works

  1. Select the Schema File property to specify the XSD file to validate against.
  2. The command loads the XML file and validates it using the selected schema.
  3. Any validation errors or warnings (such as missing required elements, invalid values, or structure mismatches) are collected.
  4. If issues are found, the Batch Folder is flagged with a message listing all errors and warnings, including line and position information.

Tips

  • Use this command to ensure your XML files conform to a required structure before further processing or export.
  • Review the flagged messages for details on any validation failures.
  • Make sure the schema file accurately describes the expected XML structure and data types.

Example

  • Schema File: InvoiceSchema.xsd
  • If the XML file is missing a required <InvoiceNumber> element, the command will flag the document and report the missing element with its line number.

Properties

NameTypeDescription

See Also

Notification