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. Create contextmenu just like the one on the homescreen

Hi,

I can create context menu on my app, but it's a single level only.
The question is how to create categorized menu on my context menu just
like on the home screen's context menu?

Example:

Application (level 1)
     |-Application name (level 2)
     |-
Shortcut
Widget

I tried to use submenu, but it pops up another dialog box instead of
expanding the category.

Can anybody give me a hint?

Thanks

Andrew
--~--~---------~--~----~------------~-------~--~----~

2. When will the Media classes be able to connect to telephone 'conversation' audio channels ?

I'd never claim that all of the software on android can be replaced by third
party developers.  Most system application components can be re-used and
replaced by third party apps, but that is a very different statement.

Also, just being able to replace the phone app (which is not really any app,
but more a core system process) means nothing about being able to do
IVR-like features -- all the phone app does is talk with the radio module
(running on a different processor) using very high-level commands.

If you want to add new features to the platform, you can get the source code
and look/work on it, and talk about that work on android-platform.  Though
again, I doubt you would get very far adding IVR features even directly
modifying the platform code.














-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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

3. How to start the standard MusicBrowserActivity?

4. Please Google: clean racist comment on Android Market

5. When will the Media classes be able to connect to telephone 'conversation' audio channels ?

6. how can BroadcastReceiver do managedquery?

7. Using Mogees on SlideME