XmlToComponentArray class is created to decrease dependency