title: Bus seat reservation management
body: <p>Currently I am getting this below <strong>XML data format from URL</strong>-</p>
  
  <pre><code>&lt;Seat&gt;
  &lt;ColumnNo&gt;0&lt;/ColumnNo&gt;
  &lt;Deck&gt;2&lt;/Deck&gt;
  &lt;Height&gt;2&lt;/Height&gt;
  &lt;IsAvailable&gt;1&lt;/IsAvailable&gt;
  &lt;RowNo&gt;0&lt;/RowNo&gt;
  &lt;SeatLabel&gt;E&lt;/SeatLabel&gt;
  &lt;Width&gt;1&lt;/Width&gt;
  &lt;/Seat&gt;
  
  &lt;Seat&gt;
  &lt;ColumnNo&gt;1&lt;/ColumnNo&gt; 
  &lt;Deck&gt;1&lt;/Deck&gt; 
  &lt;Height&gt;2&lt;/Height&gt; 
  &lt;IsAvailable&gt;1&lt;/IsAvailable&gt; 
  &lt;RowNo&gt;0&lt;/RowNo&gt;
  &lt;SeatLabel&gt;SL5&lt;/SeatLabel&gt; 
  &lt;Width&gt;1&lt;/Width&gt;
  &lt;/Seat&gt;
  
  &lt;Seat&gt;
  &lt;ColumnNo&gt;2&lt;/ColumnNo&gt; 
  &lt;Deck&gt;1&lt;/Deck&gt; 
  &lt;Height&gt;1&lt;/Height&gt; 
  &lt;IsAvailable&gt;1&lt;/IsAvailable&gt; 
  &lt;RowNo&gt;0&lt;/RowNo&gt;
  &lt;SeatLabel/&gt; 
  &lt;Width&gt;1&lt;/Width&gt;
  &lt;/Seat&gt;
  
  
  &lt;Seat&gt;
  &lt;ColumnNo&gt;3&lt;/ColumnNo&gt; 
  &lt;Deck&gt;1&lt;/Deck&gt; 
  &lt;Height&gt;2&lt;/Height&gt; 
  &lt;IsAvailable&gt;1&lt;/IsAvailable&gt; 
  &lt;RowNo&gt;0&lt;/RowNo&gt;
  &lt;SeatLabel&gt;SL1&lt;/SeatLabel&gt; 
  &lt;Width&gt;1&lt;/Width&gt;
  &lt;/Seat&gt;
  </code></pre>
  
  <p><strong>And i have made image of layout the bus in which i want to make click on vacant seats and disable the seats in which available is 0</strong><code>( &lt;IsAvailable&gt;0&lt;/IsAvailable&gt; )</code> </p>
  
  <p><a href="https://i.stack.imgur.com/1VIkR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1VIkR.png" alt="enter image description here"></a></p>
  
  <p><strong>I am confused as to how should I make the below layout and make then populate with the XML data which I am getting.</strong></p>
  
  <ul>
  <li>How to make the seating layout. </li>
  <li>How to Populate seat with XML data and which on click will be transferred to next activity for further process. </li>
  <li>enable disable the seat on basis of its availability.</li>
  </ul>
  
  <p><strong>I am able to parse the data/values from XML in my code....I want that how to make the layout format and fit those XML values to particular seats.</strong></p>