Display controls on the uiview
<p>I have this XML i want display all fields on the uiview which comes with this XML
example--i am getting "choise" meen i will display a segment control on the uiview with label and fieldname.i have parsed the xml and got all data in an array</p>

<pre><code>- &lt;campaign id="8aff8bbb59ac4d279dcaf1662cb20b5f"&gt;
- &lt;input&gt;
  &lt;type&gt;choice&lt;/type&gt;  
  &lt;fieldname&gt;Attendance&lt;/fieldname&gt;    
  &lt;label&gt;Attendance&lt;/label&gt; 
  &lt;validations /&gt; 
  &lt;selected&gt;0&lt;/selected&gt;    
  &lt;params&gt;Present,Leave,Meeting,Travel,Holiday,Weekly off&lt;/params&gt; 
  &lt;/input&gt;
- &lt;input&gt;
  &lt;type&gt;combo&lt;/type&gt; 
  &lt;fieldname&gt;WorkingWith&lt;/fieldname&gt; 
  &lt;label&gt;Working With&lt;/label&gt; 
  &lt;validations /&gt;  
  &lt;selected&gt;0&lt;/selected&gt; 
  &lt;params&gt;None,ASM,RSM,ZSM&lt;/params&gt; 
  &lt;/input&gt;
- &lt;input&gt;
  &lt;type&gt;combo&lt;/type&gt; 
  &lt;fieldname&gt;BeatName&lt;/fieldname&gt; 
  &lt;label&gt;Beat Name&lt;/label&gt; 
  &lt;validations /&gt; 
  &lt;selected&gt;0&lt;/selected&gt; 
  &lt;params&gt;Lajpat Nagar,Kamala Nagar,Karol Bagh,Patel Nagar,ITO,Sector 15&lt;/params&gt; 
  &lt;/input&gt;
</code></pre>
