Ensure to skip the element when you do not read it's contents.
Otherwise the file is not properly read, and thus you get parsing problems.