New method for xml