edited parsing of XML files