title: Parsing XML when tag names not know
body: <p>I am trying to parse the following XML. In this XML tags are coming dynamically. Tag names are not confirm. Value of the tag named "strCount" gives total number of tags (str0 to str10). Also the encounter tag can appear multiple times. </p>
  
  <pre><code>&lt;pastPregenancies&gt;
    &lt;encounter&gt;
       &lt;strNo&gt;1&lt;/strNo&gt;
       &lt;strPPId&gt;1&lt;/strPPId&gt;
       &lt;str0&gt;09/03/2004&lt;/str0&gt;
       &lt;str1&gt;4&lt;/str1&gt;
       &lt;str2&gt;2&lt;/str2&gt;
       &lt;str3&gt;6&lt;/str3&gt;
       &lt;str4 /&gt;
       &lt;str5&gt;m&lt;/str5&gt;
       &lt;str6 /&gt;
       &lt;str7 /&gt;
       &lt;str8 /&gt;
       &lt;str9 /&gt;
       &lt;str10 /&gt;
       &lt;strCount&gt;11&lt;/strCount&gt;
    &lt;/encounter&gt;
  &lt;/pastPregenancies&gt;
  </code></pre>
  
  <p>I am using simple-xml for parsing. Following is the pojo I created for this, which doesn't work - </p>
  
  <pre><code>public class PastPregenancies {
  
      @ElementList(entry="encounter", inline=true)
      private List&lt;?&gt; encounter;
  
      public List&lt;?&gt; getEncounter() {
          return encounter;
      }
  
      public void setEncounter(List&lt;?&gt; encounter) {
          this.encounter = encounter;
      }
  }
  </code></pre>
  
  <p>Please tell me how can I create pojo for parsing this type of xml.</p>