Simple XML

To create new data formats for simple XML:

  1. From the File menu in Format Designer, select New or click the New button on the toolbar. The New Format dialog is displayed:
  2. Specify this information:
    Classification
    Select Simple XML.
    Name
    Enter a unique name for the new data format.
    Description
    Enter a description for the new data format.
  3. Click OK.
  4. Specify these details:
    Add subelement
    Click to add the root element and the Simple XML dialog is displayed:
    Element
    Select a namespace available within the Format Designer; enter the name, select the Occurrences and then click OK.
    Note: You can create the element without using a namespace and attribute.
    Namespaces
    Enter the prefix, URL then click Add and OK.
    Note: If you use a namespace, it must be allocated to an element.
    Attributes
    Select a namespace available within the Format Designer, enter the Name and then click Add.
    Note: To add a subelement to a selected row, highlight the row and then click Add Subelement.
    Edit
    Select the row and click Edit. The Simple XML dialog is displayed. To amend the details of the selected element, see the above steps.
    Delete
    Highlight a row and click Delete. You will be alerted if the selected row is referenced by another element or attribute. You also will be alerted if the selected row is the root element.
    Up
    Click to move the selected row up one row.
    Down
    Click to move the selected row down one row.
  5. Click Import XSD to import an XSD file from other sources. Browse to the location of your file. The element, namespaces and attributes are extracted and inserted into the rows, replacing any rows you have already defined.
    Note: All files being imported must be in UTF-8 format.
    Note: Only simple XSD is accepted. Other complex data types are ignored and you are alerted if errors are found in transforming the external XSD into a simple XML schema.
  6. Click Save a Format to save the data format to the database.
  7. Validate and test the data format.
  8. To view or edit the data format source code, change the view to text view. Select ViewChangeText View.