Expand and collapse xml editor