dirkvranckaert / my-episodes-watch-manager

Automatically exported from code.google.com/p/my-episodes-watch-manager
1 stars 2 forks source link

Parsing the RSS feed does not parse Strings longer than 64 chars. #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This gets parsed:
[ One Tree Hill ][ 07x10 ][ You Are A Runner And I Am My Father
And it should be this one:
[ One Tree Hill ][ 07x10 ][ You Are A Runner And I Am My Father's Son ][
17-Nov-2009 ]

The fact that the parsing does not succeed is logged in the application but
does not get any exception thrown or whatever.

Original issue reported on code.google.com by dirkvran...@gmail.com on 18 Nov 2009 at 1:38

GoogleCodeExporter commented 8 years ago
This is the part where it can go wrong:

{{{
        try {
            doc = builder.parse(url.openStream());
        } catch (SAXException e) {
            String message = "Unable to parse the URL for the feed";
            Log.e(LOG_TAG, message);
            throw new FeedUrlParsingException(message, e);
        } catch (IOException e) {
            String message = "Unable to parse the URL for the feed";
            Log.e(LOG_TAG, message);
            throw new FeedUrlParsingException(message, e);
        }

        NodeList nodes = doc.getElementsByTagName("item");

        for (int i=0; i<nodes.getLength(); i++) {
            Node itemNode = nodes.item(i);

            NodeList contentNodes = itemNode.getChildNodes();
            FeedItem item = new FeedItem();
            for (int j=0; j<contentNodes.getLength(); j++) {
                Node contentNode = contentNodes.item(j);
                if (contentNode.getFirstChild() != null) {
                    String nodeValue = contentNode.getFirstChild().getNodeValue();
}}}

Original comment by dirkvran...@gmail.com on 18 Nov 2009 at 1:41

GoogleCodeExporter commented 8 years ago
Current implementation is DOM, now trying what the SAX way results in.

Original comment by dirkvran...@gmail.com on 23 Nov 2009 at 11:04

GoogleCodeExporter commented 8 years ago

Original comment by dirkvran...@gmail.com on 17 Dec 2009 at 12:52

GoogleCodeExporter commented 8 years ago

Original comment by dirkvran...@gmail.com on 18 Dec 2009 at 12:40

GoogleCodeExporter commented 8 years ago
Won't fix this issue as this an Android SDK related issue!

Original comment by dirkvran...@gmail.com on 25 Dec 2009 at 3:23