Obtaining a new instance of a SAXParserFactory, DocumentBuilderFactory
and TransformerFactory moved to a separate method in XmlUtils