Function convertToXmlComponent

Converts the given xml element (in json format) into XmlComponent.