title: Parser error : Opening and ending tag mismatch:
body: <p>I have a problem reading XML file. If you please look at xml below you see element <code>&lt;fl&gt; ?fl&gt;</code> instead of <code>&lt;fl&gt;&lt;/fl&gt;</code>. I receive error opening and ending tag mismatch.</p>
  
  <p>How to:</p>
  
  <ol>
  <li>There are an errors in XML file such as <code>&lt;fl&gt; ?fl&gt;</code> instead of <code>&lt;fl&gt;&lt;/fl&gt;</code>. How to ignore such error or fix them while reading xml and than use it for parsing?</li>
  <li>I only want to read content from <code>$_-&gt;{desc}-&gt;[0]-&gt;{en}-&gt;[0]</code> and NOT from <code>&lt;de&gt;</code>, <code>&lt;es&gt;</code>, <code>&lt;fl&gt;</code>.</li>
  </ol>
  
  <p>Now I'm reading XML file like:</p>
  
  <pre><code>package test::test6382_sunseekingeurope;
  use strict;
  use warnings;
  use test;
  use base qw/test/;
  use URI::URL;
  use XML::Simple;
  use Data::Dumper;
  use constant TASK_ID =&gt; 6382;
  use constant CR_TYPE =&gt; '6382';
  use constant IMAGE_PATH =&gt; "/home/testco/public_html/files/";#"images/";
  
  sub new
  {
  my $class = shift;
  my $self = $class-&gt;SUPER::new(CR_TYPE, TASK_ID);
  bless $self, $class;
  
  my $url = 'http://www.onbip.com/xml/sunseeking9.xml';
  
  my $xml = $self-&gt;geturl('url'=&gt;$url);
  $self-&gt;extract($xml);
  }
  
  sub extract{
  my $self = shift;
  my $xmlfile = shift;
  my $xml = new XML::Simple(ForceArray=&gt;1,'KeyAttr' =&gt;'image');
  my $data = $xml-&gt;XMLin($xmlfile);
  
  foreach(@{$data-&gt;{property}}){
      my $property = &amp;makeScalar($_-&gt;ID-&gt;[0]);
      my $description = &amp;makeScalar($_-&gt;{desc}-&gt;[0]-&gt;{en}-&gt;[0]);
  </code></pre>
  
  <p>XML:</p>
  
  <pre><code>&lt;property&gt;
  &lt;id&gt;226887&lt;/id&gt;
  &lt;desc&gt;
   &lt;en&gt;
    Nice house in the center of Alhaurin de la Torre with walking distance to all amenities.
   &lt;/en&gt;
   &lt;es&gt;
    Bonita casa mata en Alhaurin de la Torre con vistas a la montana, se puede acceder caminando al centro, colegios, etc.
   &lt;/es&gt;
    &lt;de&gt;
      guter zustand, bezaubernde immobilie,
    &lt;/de&gt;
    &lt;fl&gt;
      bon n acces par la route, partiellement meubl?a proximit?'?les, partiellement r?v
    ?fl&gt;
  &lt;/desc&gt;
  &lt;/property&gt;
  </code></pre>