×
Namespaces

Variants
Actions
Revision as of 02:01, 3 April 2007 by hartti (Talk | contribs)

KXml XML Parser in Java ME

From Nokia Developer Wiki
Jump to: navigation, search

You can use XML parsers in J2ME applications to interface with an existing XML service. For example, you could get a customized view of news on your phone from an aggregator site that summarizes headlines and story descriptions for a news site in XML format.

XML parsers tend to be bulky, with heavy run time memory requirements. In order to adapt to the MIDP environment, XML parsers must be small to meet the resource constraints of MIDP-based devices. They should also be easily portable, with minimum effort required to port them to MIDP.

Two frequently used XML parsers for resource-constrained devices are kXML and NanoXML. kXML is written exclusively for the J2ME platform (CLDC and MIDP). As of version 1.6.8 for MIDP, NanoXML supports DOM parsing.

There is also XML parser in the Web Services API (JSR-172), which can be used instead of the above mentioned parsers, which needs to be included in every MIDlet suite trying to use them. The XML parsing package has been implemented on S60 3rd Edition devices (and newer) as well as on Series 40 3rd Edition Feature Pack 1 devices (and newer).

Helpful Articles:- http://developers.sun.com/techtopics/mobility/midp/articles/parsingxml/

http://www.devx.com/xml/Article/11773

http://www-128.ibm.com/developerworks/library/wi-parsexml/

120 page views in the last 30 days.
×