Add an as_xml() method to resemble our other XML wrappers.