show item in list view after sax xml parsing
<p>I had done xml parsing and able to display one array item in list view .but i want to display 2 array item in one list...using array adapter..means i want array_barrio and array_ciudad both in one list view how can i do this...my java class is</p>

<pre><code>public class XMLParsingExample extends ListActivity {
    String name = null;
    private String array_estado[];
    private String[] array_ciudad;
    private String array_barrio[];
    /** Create Object For SiteList Class */
    SitesList sitesList = null;
    /** Called when the activity is first created. */
    @SuppressWarnings("unchecked")
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.listplaceholder);
        /** Create a new layout to display the view */
        LinearLayout layout = new LinearLayout(this);
        layout.setOrientation(1);
    try {

            SAXParserFactory spf = SAXParserFactory.newInstance();
            SAXParser sp = spf.newSAXParser();
            XMLReader xr = sp.getXMLReader();

            /** Send URL to parse XML Tags */
            URL sourceUrl = new URL(
                    "http://www.arteonline.mobi/iphone/output.php?key=Buenos");

            MyXMLHandler myXMLHandler = new MyXMLHandler();
            xr.setContentHandler(myXMLHandler);
            xr.parse(new InputSource(sourceUrl.openStream()));

        } catch (Exception e) {
            System.out.println("XML Pasing Excpetion = " + e);
        }

         sitesList = MyXMLHandler.sitesList;


         array_ciudad = new String[sitesList.getEstado().size()];
         for (int i = 0; i &lt; sitesList.getEstado().size(); i++)
         {
             name = sitesList.getEstado().get(i);
             array_ciudad[i] = name;
             Log.i("array_spinner" + i, array_ciudad[i]);
         }
         array_barrio = new String[sitesList.getBarrio().size()];
         for (int i = 0; i &lt; sitesList.getBarrio().size(); i++)
         {
             name = sitesList.getBarrio().get(i);
             array_barrio[i] = name;
           //  Log.i("array_spinner" + i, array_ciudad[i]);
         }

         setListAdapter(new ArrayAdapter(this, 
                  android.R.layout.simple_list_item_1, array_barrio));

//       setListAdapter(new ArrayAdapter(this, 
//                android.R.layout.simple_list_item_1, array_barrio ));

}
</code></pre>
