Oh, wait, this sounds similar to
Dangerous XML::Twig (or XML::Parser?) bug. Long text is read incorrectly!. Try the development version on
The Twig home page maybe? ....or not (it doesn't really sound like the same error). Where's
mirod when you need him? :-)