Add XML parsing to your J2ME applications
More and more enterprise and Java technology projects are making use of XML as a medium to store data in a portable fashion. But due to the increased processing power demanded by XML parsers, J2ME applications have largely been left out of this trend. Now, however, small-footprint XML parsers for the Java language are emerging that will allow MIDP programmers to take advantage of the power of XML. Soma Ghosh illustrates their potential with a sample application.
Create a quick-and-dirty XML parser
This tip shows you how to parse XML when running in an applet or other space-restricted environment, such as a J2ME (Java 2 Platform, Micro Edition) application. The process limits functionality in a way that many small applications can accept.
Parsing XML in J2ME
The convergence of J2ME and XML is currently a handful of open source parsers. In this article you'll learn how to parse XML in a MIDP client application. I'll begin by talking about system architecture and the motivation for using XML as a data transport. Then I'll describe the available XML parsers, discuss the challenges of developing in a small environment, and present some sample code.
Scraping HTML Pages for Content with the Mobile Information Device Profile
On occasion, you may find that the only way to obtain certain
information is to extract it from a page of HTML on a web site,
in a procedure commonly called page scraping. It's similar to
extracting data from an XML document, but HTML's syntax is much
looser than XML's, so you can't use an XML parser to parse HTML
pages. The code presented here parses an HTML page inside a
servlet or directly from a Mobile Information Device Profile
(MIDP) application.
InfoWorld is a enterprise-level publication that focuses on technology and HOW to use it to achieve higher revenues, more efficient operations and greater profits.
subscribe now