advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   TIP BANK
Browse DevX
Download the code for this article
Build a Lightweight XML DOM Parser with C#
Can you think of ways to make this parser more efficient? Do you have general parsing tips or comments?
Partners & Affiliates
advertisement
advertisement
advertisement
advertisement
 

Build Your Own Lightweight XML DOM Parser

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! 


advertisement
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 powerful—and 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?



advertisement