in reply to Re^2: XML not reading fully during IO::Socket receive
in thread XML not reading fully during IO::Socket receive
I believe I have solved my problem. I switched from using XML::Simple to using XML::Smart. In the module there is a parser called XML::Smart::HTMLParser which handles badly formated XML's. It caught the error and handled it. Great.