FormatXml method added.