Replaced SimpleXmlParser dependency with dependency injection