I use Kxml2 parser to parse the xml response I get as a response from a remote page. It is for user authentication, and the returned xml gives several details about the user. The app is built with LWUIT 1.5 and it works on MIDP and Blackberry versions.
On the Android version it doesn’t work. Is there any extra specification I am supposed to add, for Android to work properly?
I use Kxml2 parser to parse the xml response I get as a response
Share
There is a XMLParser in LWUIT, is very easy to use. You can try to use it. It works fine in my MIDP and BB apps. I can’t test it in Android but I think It could be the solution. How do you port your LWUIT apps to Android?
ADD
Well I will try to explain the use of this Parser the best that I can
You need to import this packages:
In my project I extract a XML from an
HTTPConnection.Suppose out XML is as follows:
Then do the following:
You will get
HI
HI2
I hope this wroks for you.