The useful option here is error_context => 1 which will display the line where the error occurs. This indeed shows that there is a & in the data. This is not allowed in XML, you have to replace it by &. There are a certain number of those in the file, along with a < on line 2614 thr needs to be replaced by < and a <<SW>> that needs to become <<SW>> on line 11037.
Note that you don't need a field sub either, this is already a method, $member->field( 'name') works just fine.
In reply to Re: 'not well-formed' using XML::Twig
by mirod
in thread 'not well-formed' using XML::Twig
by Mr. Muskrat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |