Editing a customization file in the Tree View

Applets, default configurations, and layer definitions are written in ArcPad XML format. When you work with these files in ArcPad Studio, the ArcPad XML structure is displayed as a tree diagram by default. ArcPad XML elements and attributes are displayed as branches in the tree. You can modify the customization files very quickly by working directly in the Tree View.

Screen shot of the Tree View window.

Adding an element

Steps:
  1. Create or open an applet, default configuration, or layer definition file.
  2. In the Tree View, right-click the element under which you want to add the new element. For example, to add a new element under the root, right-click <ArcPad>.
  3. Click Add Element.
  4. Type a name for the element in the Element Name text box, then click OK.

Adding an attribute to an element

Consult the ArcPad XML Reference section of this help system to learn what attributes are supported for a given element. You can also right-click an element in the Tree View and click Help for this element to go directly to the ArcPad XML Reference section for that element.

Steps:
  1. Create or open an applet, default configuration, or layer definition file.
  2. In the Tree View, right-click the element to which you want to add the attribute. For example, to add an attribute to the <LAYER> element, right-click <LAYER>.
  3. Click Add Attribute.
  4. Type a name and value for the attribute in the Attribute dialog box, then click OK.

Changing the value of an attribute

Steps:
  1. Create or open an applet, default configuration, or layer definition file.
  2. In the Tree View, double-click the attribute with the value you want to change.
  3. Type or select a new value, then click OK.

Deleting an element

Steps:
  1. Create or open an applet, default configuration, or layer definition file.
  2. In the Tree View, right-click the element you want to delete, then click Delete Element.

Deleting children elements of an element

Steps:
  1. Create or open an applet, default configuration, or layer definition file.
  2. In the Tree View, right-click the element with the children elements you want to delete, then click Delete Children.

Deleting a single attribute of an element

Steps:
  1. Create or open an applet, default configuration, or layer definition file.
  2. In the Tree View, right-click the attribute you want to delete, then click Delete Attribute.

Deleting all the attributes of an element

Steps:
  1. Create or open an applet, default configuration, or layer definition file.
  2. In the Tree View, right-click the element with the attributes you want to delete, then click Delete Attributes.

Cut, or copy, and paste the attributes of an element

Steps:
  1. Create or open an applet, default configuration, or layer definition file.
  2. In the Tree View, right-click the attribute you want to cut or copy, then click Cut or Copy depending on what you want to do.
  3. Right-click the element where you want to paste the attribute, then click Paste.

Cut, or copy, and paste an element

Steps:
  1. Create or open an applet, default configuration, or layer definition file.
  2. In the Tree View, right-click the element you want to cut or copy, then click Cut or Copy depending on what you want to do.
  3. Right-click the parent element where you want to paste the cut or copied element, then click Paste.

Dragging and dropping an attribute or element

You can drag and drop elements and attributes within any customization file, but not between different customization files. To move elements and attributes between customization files, use Cut/Copy and Paste.

Steps:
  1. Create or open an applet, default configuration, or layer definition file.
  2. In the Tree View, click the element or attribute you want to drag and drop.
  3. While pressing the mouse button, drag the element or attribute to its desired location in the tree.
  4. Release the mouse button to drop the element or attribute.

Getting help for an attribute or element

Steps:
  1. Create or open an applet, default configuration, or layer definition file.
  2. In the Tree View, right-click the element or attribute for which you want help.
  3. Click Help for this element or Help on parent element.

2/7/2013