Uses as.xml.Elem to get XML back instead of a String.