BUG: corrected errors with XML reading
BUG: XML parsing corrected