in reply to Re^3: XML::Simple giving a non-specific error
in thread XML::Simple giving a non-specific error

If a guy catches the baseball at the edge of the outfield, it's not the edge of the outfield that caught the ball. Aside from the fact that it really was found before EOF (since at least the last newline and the EOF remain unparsed), the point was that the error could have been caught earlier, and would have been caught earlier (say if you had <ROOT><BODY><ERROR><ERROR></BODY></ROOT>).

Besides, the following indicates the reported byte pos for me:

</ROOT> ^ |