500kb OPML parsing issues

by renegadea...@googlemail.com » Wed, 10 Jun 2009 10:37:08 GMT


Sponsored Links
 Right this is the problem. I am trying to find specific words within
this large OPML file which content is

: http://news.bbc.co.uk/rss/feeds.opml 

The file is a large list of rss feeds for various bbc news items - and
I need to parse it to find specific feeds.

Currently I am doing it as follows:

  http://pastebin.com/m15e0ea5f 

This is fairly fast if i search for say "celtic" however if you enter
"w00f" and run the command it will be disgustingly slow.

Can anybody demonstrate how I can parse this opml file using the
android xml parsers please - because i have tried, and tried, and
tried and cannot get it to do it!

Cheers

Andy
--~--~---------~--~----~------------~-------~--~----~



500kb OPML parsing issues

by Dave Bordoley » Wed, 10 Jun 2009 15:59:49 GMT


 Use a SAX parser to parse the XML, see
 http://developer.android.com/reference/javax/xml/parsers/SAXParser.html. 

Dave


On Tue, Jun 9, 2009 at 7:36 PM,



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


500kb OPML parsing issues

by Marc Lester Tan » Wed, 10 Jun 2009 16:11:58 GMT


 or use Pull Parser:

 http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html 


-Marc







--~--~---------~--~----~------------~-------~--~----~



500kb OPML parsing issues

by renegadea...@googlemail.com » Wed, 10 Jun 2009 19:32:04 GMT


 Can you actually show me some code doing it - I ave tried using these
and always fail with some exception... please demo how you would do
it!





--~--~---------~--~----~------------~-------~--~----~



500kb OPML parsing issues

by Sean Hodges » Wed, 10 Jun 2009 21:10:43 GMT


 Andy,

A simple example is provided on the already linked article for
PullParser 
( http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html )

An example for using the SAXParser is available here:
 http://www.anddev.org/parsing_xml_from_the_net_-_using_the_saxparser-t353.html 

If you get exceptions, please post them up (along with your source
code) so we can take a look at them and try to help out.


Regards,

Sean


On Wed, Jun 10, 2009 at 12:31 PM,






--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Disabling / clearing browser cache

Hello,

I am creating an application that times how long it takes to open
certain web pages. However, the device is using cached versions of
pages to determine these times, which is not what I want. Is there a
way to:

1) Clear the cache via API
OR 2) Disable the cache, either through the UI or API?

Help is very much appreciated,

Thanks!
-Patrick

--~--~---------~--~----~------------~-------~--~----~

2. sharing audio via mms

Has sharing audio via mms been implemented?  It works fine with
photos, but when I make an Intent with ACTION_SEND and type "audio/*"
no activity matches.

--~--~---------~--~----~------------~-------~--~----~

3. How to deploy large DB with my APK

4. I don't have the phone, how can I read reviews?

5. Changing IMAP

6. Developer Available

7. How to build recovery Image separately