Update function: Xml2.toPrettyXml