Thank a lot for your help Casper yes i want to display this ArrayList:

public  ArrayList<ArrayList> renvoi_liste_recette_xml() throws
Exception{

        ArrayList<ArrayList> aTableRetour = new ArrayList<ArrayList>();
        URL myURL = new URL("http://benji.roullet.free.fr/testXml.xml";);
          DocumentBuilderFactory fabrique = DocumentBuilderFactory.newInstance
();
          DocumentBuilder constructeur = fabrique.newDocumentBuilder();
          Document document = constructeur.parse(myURL.openStream());
          Element racine = document.getDocumentElement();
          NodeList liste = racine.getElementsByTagName("Contact");
          for(int i=0; i<liste.getLength(); i++){
                  ArrayList<String> aTableauTmp =  new ArrayList<String>();
                  Element E1= (Element) liste.item(i);
                  aTableauTmp.addAll((Collection<? extends String>)
E1.getElementsByTagName("nom"));
                  aTableRetour.add(aTableauTmp);
          }

        return aTableRetour;

}


On 9 sep, 16:37, Casper Bang <casper.b...@gmail.com> wrote:
> Oops, that should say Activity rather than Intent:
>
> > Or you could create a test Intent for the purpose:
>
> Double oops, I did not see you wanted to display ArrayList<ArrayList<?
>
> >>.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to