Most currently available Java XML parsers are rich in functionality, but in some cases these full-featured parsers are too large for resource-limited environments, such as Java applets or J2ME applications. Don't count XML out yet though; you can write your own lightweight Java XML parser in fewer than 400 lines of code!
by Guang Yang
November 22, 2002
Editor's Note: This tutorial is also available for Visual Basic developers. Get the VB version.
ML is rapidly gaining popularity with application developers as a data storage and exchange format because of its readability, ease of use, and firewall friendliness. The full-featured Java XML parser implementations currently available are large and powerfuland consume resources commensurate with that power at run time. For example, the popular Apache Xerces-J parser is over 1.7 MB, while the latest complete Sun JAXP (Java API for XML Processing) implementation package is more than 3 MB.
It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com. Already a member?
To become a member of DevX.com create your Member Profile by completing the form below. Membership is free!