Implement the xml() method.