Structure View

The Structure View shows a tree representation of the XML examples that form the structures onto which rules can be added.  The tree is opened by selecting the structure ID in the Structures View. 

There are two default actions available from the tool bar. 

  1. allows the tree to be refreshed.  (As the editor is undergoing further development it is occasionally needed to refresh the tree to get it back to a known state.)
  2. allows a new namespace to be defined.

Any Element that has children may be expanded by clicking on the  symbol next to the element name.  On opening the tree is by default opened to 3 levels.  To close part of the tree click on the symbol.

From within the tree it is possible to use the context menu to drive further actions:  From the 'Structure' root node the following menu is enabled:

The add child element options allows a new root node to be created. Structures should only have one root node. This is intended to allow XML structures to be built from scratch using the tree editor.

For XML Elements the following menu is available:

  1. Edit Text is enabled when the there are no child elements of the current node.  It allows the text of the node to be changed.  If the text is surrounded by % signs CAM will ignore the contents.  If the text is text without % signs it is treated as the required value for the field.
  2. The View Rules option is the same as selecting the current node.  If any rules exist they will appear in the ItemRules View.  If a node has a rule it will be highlighted in bold.
  3. The Add New Rule option opens the Add New Rule Wizard that allows the new rule to be defined for the current node.  A node may have more than one rule.  These rules are known as Constraints with in the CAM specification
  4. The Add New Context option opens the Add New Context Wizard that allows a new Context to be defined.  See Concepts/Context
  5. The Add Child Element adds a new child element to the current element.  If the element has text defined for itself this will be removed.  CAM does not support Mixed mode XML.  The option allows the new element to be defined using a fully qualified name i.e. as:Element.  The prefix must match one of the current namespaces defined for the Template.
  6. The Add Child Attribute allows a new XML attribute to be defined.  Like element attributes can be defined using qualified names using namespace prefixes.
  7. The Delete Item allows the current Element to be deleted from the XML tree.

For XML Attributes the only difference is that the Add Child Element option is not available.