本帖最后由 j67065 于 2012-05-23 10:51:31 编辑

解决方案 »

  1.   

    请教一下,应该如何设置adapter?
      

  2.   

    List<English> englishXML = null;
    try
    {
      String myUrl = "http://www.xx.com/xx.xml";
      URL url = new URL(myUrl);
      try
      {
         InputStream inputStream = url.openStream();
         DomParse domParse = DomParse(inputStream)
         englishXML = List<English> domParse.readXml();
         inputStream.close();
      }
      catch (IOException e)
      {
         // TODO Auto-generated catch block
         e.printStackTrace();
      }
    }
    catch (MalformedURLException e)
    {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }