Document xml() functionality