xml() method