views:

69

answers:

2

Hello,

I am trying to write a program in android that does a lot of string and xml parsing.

I need suggestion of which way to go :

  1. Use JNI and implement parsing in C++ and use C++ xml SAX parsing (Android - NDk)

  2. Go with java and parse xml with SAX

A: 

I would suggest option 2.
It may not be worth it to go with the complexity of NDK just for the parsing purpose.

Ramp
yeah by JNI (option 1) i mean the NDK
srinathhs
You are right. I misunderstood your question.
Ramp
how will be the speed trade-off's? the amount of data i would like to process is quite big ( Lets say 50 - 100 Rss feeds) i would not be just parsing the rss xml and store it, but do more operations on the data in the posts.
srinathhs
A: 

Have you considered a server-side component that could do the majority of the parsing, which then sends a stream to devices that is significantly easier for the device to parse? You could present a web interface in addition to a mobile interface. It would be easier to setup subscriptions for which you could charge a fee if you someday decided to.

Dave MacLean
This was actually my first thought, I might end up with that itself, but really wanted to know if there was a better way to do it on the device itself.
srinathhs