Customizing XML Schemas

Making changes to your XML Schema in its editor controls the look and format of data when Clarify reads from or writes to an XML file. Please note that this applies only to schemas supporting the older transformation engine (Version 1).

Documents, elements, attribute lists, attributes, namespace lists, and namespaces can all be edited by selecting them in the Schema area and accessing the Properties view. There are two tabs, Properties and Constraints, which can be used to make changes.

Cleo recommends updating your XSD or DTD outside of Clarify in order to reflect any changes made in the Schema editor so your documents are consistent.

In the Schema area, there are buttons that allow you to:
  • Add Element
  • Add Attribute List
  • Add Attribute
  • Add Content Model Fragment
  • Add CDATA Section
  • Add Namespace List
  • Add Namespace
  • Add Prolog
  • Add Entity
  • Add Notation
  • Add Processing Instruction
  • Add Document Type Declaration
  • Group on Record (Element) : Creates a group of data when the specified element is encountered.
  • Remove Data Group: Removes the Grouping from an element

You can also select any elements, attribute lists, attributes, namespace lists, namespaces, etc. and click Remove to delete them from the Schema.

You can also click the Export Originating Schema button to save a copy of the original XSD or DTD to another location outside Clarify. The resulting XSD or DTD does not reflect changes made in the Schema.

Document Level

The following Properties can be edited at the Document Level:
  • Component ID
The following Constraints can be edited at the Document Level:
  • Name
  • Minimum Occurs
  • Maximum Occurs

Element Level

The following Properties can be edited at the Element Level:
  • Base Type
  • Component ID
  • Content Model
  • Enumeration Values
  • Form
  • Group on Record
  • Fraction Digits
  • Length
  • Maximum Exclusive
  • Maximum Inclusive
  • Maximum Length
  • Minimum Exclusive
  • Minimum Inclusive
  • Minimum Length
  • Name
  • Namespace Prefix
  • Namespace Uri
  • Nillable
  • Pattern
  • Total Digits
  • White Space
The following Constraints can be edited at the Element Level:
  • Name
  • Minimum Occurs
  • Maximum Occurs

Attribute List Level

The following Properties can be edited at the Attribute List Level:
  • Component ID
The following Constraints can be edited at the Attribute Level:
  • Name
  • Minimum Occurs
  • Maximum Occurs

Attribute Level

The following Properties can be edited at the Attribute Level:
  • Base Type
  • Component ID
  • Enumeration Values
  • Form
  • Fraction Digits
  • Length
  • Maximum Exclusive
  • Maximum Inclusive
  • Maximum Length
  • Minimum Exclusive
  • Minimum Inclusive
  • Minimum Length
  • Name
  • Namespace Prefix
  • Namespace Uri
  • Pattern
  • Total Digits
  • White Space
The following Constraints can be edited at the Attribute Level:
  • Name
  • Minimum Occurs
  • Maximum Occurs

Namespace List Level

The following Properties can be edited at the Namespace List Level:
  • Component ID
The following Constraints can be edited at the Namespace List Level:
  • Name
  • Minimum Occurs
  • Maximum Occurs

Namespace Level

The following Properties can be edited at the Namespace Level:
  • Component ID
  • Original Prefix
  • Uri
The following Constraints can be edited at the Namespace Level:
  • Name
  • Minimum Occurs
  • Maximum Occurs