Editing XML message structures

Editing XML is similar to editing normal message structures, but with a few enhancements. The following options in the element menu apply specifically to editing XML.

  • The Schema option launches the Schema Selector window. You can then select a schema, select the message root from the schema, and apply various validation options. You can also include/exclude optional fields and text nodes. The schema can come from an XSD, WSDL, DTD, or other custom formats in the project. For more information, see Applying schemas and formats to messages.
  • The Root option allows selection of the root of the schema if there is more than one root.
  • The Add Child option allows six types of XML document structure items to be added, as follows:
    • Attribute adds an XML attribute
    • Comment adds an XML comment
    • Doc Type adds an XML doc type element
    • Element adds an XML element
    • Processing Instruction adds an XML processing instruction
    • Text adds an XML text node

For information about the various functions of the different parts of XML documents, please see the W3C's XML pages at http://www.w3c.org/XML.