I am using XML Simple to parse an XML file, the problematic part is as follows:
<textBody>
<title>
<titlePart>
<text>SECTION A <emdash/> HUMAN NECESSITIES</text>
</titlePart>
</title>
</textBody>
<ipcEntry kind="t" symbol="A01" ipcLevel="C" entryType="K" lang="EN">
<textBody>
<title>
<titlePart>
<text>AGRICULTURE</text>
</titlePart>
</title>
</textBody>
</ipcEntry
for some reason XML :: Simple completely ignores <text>SECTION A <emdash/> HUMAN NECESSITIES</text>
I think this is because the emdash tag is because it <text>AGRICULTURE</text>parses just fine. I also tried setting the parser:
$XML::Simple::PREFERRED_PARSER = 'XML::Parser';
still no. Any idea?
source
share