Added makeXml() function.