• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

How to get xml parser for J2ME application...  RSS feed

 
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
 
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
Boost this thread!