I am debugging a complex legacy code that uses XML::Parser module and I haven't used this module before.
In this code, one of the XML elements looks like this:
<Title>Company A&B Information</Title>
Now, the problem that's happening is that when the parser extracts text from this element, it extracts 'B Information'
. I have found that the &
is causing some trouble because of which the initial part of the text, i.e. Company A&
gets ignored by the parser.
Any ideas about why XML::Parser would do this? I'd appreciate any help. Thanks.