use a method for XML