• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get xml parser for J2ME application...

 
mano karan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a novice programmer to J2ME. I have to process a XML document and display the content in the mobile toolkit.
I heard about tinyXML,kXML and other parsers.
I couldn't get the tinyxml_tree.jar file.
If anyone using this jar file or any other XML parser in your application, could you please send me the procedure to implement it?
Which one will be easier and efficient to be used in mobile application?
Also inform me details about the related materials on the implementation of XML in J2ME....

Regards,
manokaran.d.
SCJP1.4
 
chinnu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure about parsing xml for mobiles but this is one way of parsing xml documents using

import org.w3c.dom.*;
import javax.xml.parsers.*;

DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();

DocumentBuilder builder = factory.newDocumentBuilder();

document = builder.parse(xmlFile);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic