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

XML Schema Importer

Schema Importer Grooper.EDI

Generates data elements corresponding to the elements and attributes defined in an XML schema.

Remarks

XMLSchemaImporter automates the creation of Grooper data elements (fields and sections) by reading the structure of an XML Schema (XSD file).

This tool is designed for end users who want to quickly build a data model that matches the structure of XML documents they need to process.

How It Works

  1. Schema File
    Select a Resource File containing your XML Schema (XSD). The importer will read this file to determine the elements and attributes to create.

  2. Element Name Format
    Choose how the names of generated data elements should be formatted (e.g., as-is, display name, or cased).

  3. Name Casing
    If you select the 'Cased' naming method, specify the character casing (e.g., PascalCase, camelCase, etc.) to apply to element names.

  4. Value Delimiter
    For fields that can have multiple values (such as repeating elements), specify the delimiter to use when storing multiple values in a single field.

What Gets Imported

  • Elements: Each element in the schema becomes a Data Field or Data Section, depending on its type and structure.
  • Attributes: Attributes of elements are imported as Data Fields.
  • Enumerations and Restrictions: If the schema defines allowed values or restrictions, these are applied to the corresponding fields.
  • Documentation: Comments and documentation from the schema are imported as field or section descriptions.

Usage Notes

  • The importer will create a hierarchy of fields and sections that matches the schema's structure, including nested and repeating elements.
  • If the schema changes, you can re-run the importer to update your data model.
  • Review the generated fields and sections after import to ensure they meet your requirements.

Example Workflow

  1. Add your XSD file as a Resource File in your Grooper project.
  2. Create or select a Data Model or Section where you want to import the schema.
  3. Add an Import Schema command and set the Source to XMLSchemaImporter.
  4. Configure the properties as needed and execute the import.

Properties

NameTypeDescription

See Also

Used By

Notification