Fix xml api output by setting the indexed tag name