RegEx formatter replaced with XmlDocument