drools-eclipse/org.guvnor.eclipse.webdav/src/interface/org/eclipse/webdav/dom/ElementEditor.java
public static String getChildText(Element parent, String name, boolean firstToLast) {
        Assert.isTrue(isDAVElement(parent));
        Assert.isNotNull(name);
        Element child;
        if (firstToLast)
            child = getFirstChild(parent, name);
        else
            child = getLastChild(parent, name);
        if (child != null)
            return getText(child, firstToLast);
        return null;
    }
public static String getChildText(Element parent, String name, boolean firstToLast) {
        Assert.isTrue(isDAVElement(parent));
        Assert.isNotNull(name);
        Element child;
        if (firstToLast)
            child = getFirstChild(parent, name);
        else
            child = getLastChild(parent, name);
        if (child != null)
            return getText(child, firstToLast);
        return null;
    }
Returns the data of the first child text node of the first WebDAV
child with the given name of the given parent, or the empty
<code>String</code> if no such child text node exists, or
<code>null</code> if no such child exists. If firstToLast is true, the
search for the child starts at the parent's first child, otherwise,
the search starts at the parent's last child. The parent must not be
<code>null</code> and must be a WebDAV element. The name of the child
must not be <code>null</code>.

@param parent      the parent of the child with the child text node
to search for
@param name        the name of the child with the child text node to
search for
@param firstToLast a boolean specifying the direction to search for
the specified child among the parent's children
@return            the data of the child's child text node, or the
empty <code>String</code> if no such child exists,
or <code>null</code> if no such child exists