Dear All,
I have an xml without the encoding format line like "<?xml version="1.0" encoding="UTF-8"?>" at the start of the xml. I am parsing the XML using the module XML::Parser and I am able to parse it without any errors.
If I want to check the encoding format of the XML how can I check that? Is there any method in Perl to check the encoding format of the XML which is without the XML Declaration line at the start?
The XML looks like this:
[CODE=xml]<record>
<name>a</name>
<place>b</place>
</record>
<record>
<name>c</name>
<place>d</place>
</record>[/CODE]
Can anyone help me out please?
I have an xml without the encoding format line like "<?xml version="1.0" encoding="UTF-8"?>" at the start of the xml. I am parsing the XML using the module XML::Parser and I am able to parse it without any errors.
If I want to check the encoding format of the XML how can I check that? Is there any method in Perl to check the encoding format of the XML which is without the XML Declaration line at the start?
The XML looks like this:
[CODE=xml]<record>
<name>a</name>
<place>b</place>
</record>
<record>
<name>c</name>
<place>d</place>
</record>[/CODE]
Can anyone help me out please?
Comment