title: JAVA - Parsing an XML file into Map using FasterXml.Jackson
body: <p>I have the following XML file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Site xmlns="bla" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  id="0" affiliations="foo" status="OPERATIONAL" color="#DB2253" updateTime="2002-12-17T09:30:47.0Z" name="GFB_0035" subject="GF"&gt;
      &lt;location&gt;
          &lt;vertices Lat="41.905889" Lon="12.452019"/&gt;
          &lt;vertices Lat="41.905973" Lon="12.453596"/&gt;
          &lt;vertices Lat="41.905206" Lon="12.453707"/&gt;
          &lt;vertices Lat="41.905058" Lon="12.452109"/&gt;
      &lt;/location&gt;
  &lt;/Site&gt;
  </code></pre>
  
  <p>I am using <code>FasterXml.Jackson</code> to parse the data into a <code>Map&lt;String, Object&gt;</code>
  object using the following code:</p>
  
  <pre><code>XmlMapper xmlMapper = new XmlMapper();
  Map&lt;String, Object&gt; data = xmlMapper.readValue(new File(xmlFile), Map.class);
  </code></pre>
  
  <p>However, when I look at the contents of the <code>"location"</code> field I have only one vertex instead of four (the last one).</p>
  
  <p><strong>UPDATE:</strong>
  The map object which I get looks like the one bellow:</p>
  
  <pre><code>{id=0, affiliations=foo, status=OPERATIONAL, color=#DB2253, updateTime=2002-12-17T09:30:47.0Z, name=GFB_0035, subject=GF, location={vertices={Lat=41.905058, Lon=12.452109}}}
  </code></pre>
  
  <p>Is there a way to get all four entries using <code>FasterXml.Jackson</code>?</p>