Get your CodeRanch badge!*
The moose likes Java Micro Edition and the fly likes How to extract XML in j2me Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "How to extract XML in j2me Application" Watch "How to extract XML in j2me Application" New topic
Author

How to extract XML in j2me Application

Rohan Kumar
Greenhorn

Joined: Jul 27, 2002
Posts: 9
Hi All,
I am making an application in j2me which interact with java servlets using HTTP connectivity given in j2me to send or receive data.
I want to use xml for this data communication.
Now the problem is how can i extract the xml data or create a request in the for of xml from a j2me application .
would highly appreciate if someone can provide an example for same.
regards,
Rohan
a sanjuan
Ranch Hand

Joined: Jun 12, 2002
Posts: 164
you wanna use xml parsers for parsing any incoming xml:
here's an article that might be useful:
http://wireless.java.sun.com/midp/articles/parsingxml/
there is an exciting jsr as well that will come out with an optional package that will standardize this:
http://www.jcp.org/en/jsr/detail?id=172
* you can download the proposed API from the page above

[ March 10, 2003: Message edited by: a sanjuan ]
[ March 10, 2003: Message edited by: a sanjuan ]
Rohan Kumar
Greenhorn

Joined: Jul 27, 2002
Posts: 9
Thanks Sanjuan,
Hope this would help me.
Regards,
Rohan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to extract XML in j2me Application
 
Similar Threads
Using certificate in mobile app
Getting data from a webpage
how to use data on access in j2me?
Parse XML File Using Java
Extracting namespaces from an XML doc