http://www.perlmonks.org?node_id=707332


in reply to Re^3: XMLin error while parsing
in thread XMLin error while parsing

Depends on the size and complexity and formatting of the XML. It's not always apparent what tag is not closed properly if all you know is the place where it is supposed to be closed. It can be quite far away.