http://openxal.org/ui/java
select-attribute-type

Overview

Documentation

The value of this attribute is any valid XPath query which returns a result set (usually a set of elements or attributes) on which the enclosing xModify command then operates on.

Shown below is a valid xModify command set containing just 1 command: remove-element.

    <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify" 
            document="mydocument">
        <xm:remove-element select="/ui/rootPane/freePane[1]/button"/>
    </xm:modifications>

The 'select' attribute of this command contains the following XPath query: "/ui/rootPane/freePane[1]/button". This query selects all buttons in the document "mydocument" that are children of the first child freePane of the rootPane element. All of these buttons are then removed from the document by the remove-element command.

When selecting elements in the HTML document be sure to capitalize the element names. This is a result of the way the are store in the browser. The following example will append a row to the table with an id of "myTable". Notice on the XPath statement also contains the TBODY which is standard on all tables.
    <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify" 
            document="html">
        <xm:append select="TABLE[@id='myTable']/TBODY">
            <![CDATA[ <tr><td>New Person</td></tr>
            ]]>
        </xm:append>
    </xm:modifications>
Version: Based on Platform 4.5.7.1862last update: 2007-06-22