used array instead of XmlElement to construct response content