Created a new xml method, and changed usages of this.