0

I have this method:

@Override
    protected Document doInBackground(String... params) {
        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        factory.setNamespaceAware(true);
        try {
            URL url = new URL(params[0]);
            return factory.newDocumentBuilder().parse(url.openStream());
        } catch(Exception e) {
            e.printStackTrace();
            return null;
        }

Instead of returning Document containing the XML file I am attempting to parse, this method returns a Document containing: org.apache.harmony.xml.dom.DocumentImpl@3f9ee43b

  • I'm confused. What is in the URL? Are you getting a Json or something similar from it? – Mike Clark Mar 05 '15 at 04:21
  • Any RSS feed. I am referencing it wrong? –  Mar 05 '15 at 04:51
  • You can check out these links: [Link1](http://code.google.com/p/android-rss/), [Link2](http://stackoverflow.com/a/4051002/4261022) [Link3](http://stackoverflow.com/a/24985128/4261022). Hope it helps! – Mike Clark Mar 05 '15 at 05:54

0 Answers0