Implemented basic XML reader.