in reply to Re^3: Help extracting text from XML data
in thread Help extracting text from XML data
No.
use XML::Simple; my $data = XMLin( '<string>Everyone knows that 1 < 2</string>'); print $data; # ==> Everyone knows that 1 < 2
Your code did not unescape the string. And before you attempt to add that, keep in mind that there might have been <string><![CDATA[Everyone knows that 1 < 2]]></string>. Or the encoding specified by the <?xml ...?> might have been different and there might have been some accentuated characters that need to be converted. Or. Or. Or. If you do know your files will never contain anything like that, go ahead. But don't say your script processes XML then, because it doesn't.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Help extracting text from XML data
by JadeNB (Chaplain) on Oct 21, 2008 at 20:32 UTC | |
|
Re^5: Help extracting text from XML data
by BrowserUk (Patriarch) on Oct 21, 2008 at 23:41 UTC | |
by Jenda (Abbot) on Oct 22, 2008 at 09:16 UTC |