replaced XmlStreamReader with DOM