Added xml functions