public int index(XMLNodeWrapper child)
    {

        int count = childCount();
        for (int i = 0; i < count; i++)
        {
            if (child.getE() == this.child(i).getE())
            {
                return i;
            }
        }
        return -1; // Should never get here.
    }