How to improve java and XML performance

Improving the performance of java and XML can be done in many ways. It all depends on the type of application you are building and the type of API that you are using the implementations.

For example you might be aware that processing an XML document using java can be done using SAX or DOM. But you should know the difference clearly between using the SAX and the DOM.

SAX is an event based model while DOM is tree structure. You could use SAX to process the document once opt for DOM if you are going to process the document multiple times.

DOM uses more memory when compared to that of SAX. To edit the XML documents you could very well opt for DOM. If you compare the performance of using SAX and DOM, SAX is much faster than DOM.

You should also consider the alternative APIs like JDOM and dom4j for processing XML documents using Java. Know the difference in the implementation as some of the API are designed with performance in mind and some with ease of use.

The URL,
http://java.sun.com/developer/technicalArticles/xml/JavaTechandXML_part3/ has a lot of comparison and tips on how to improve the performance. It is worth to have a look at it.



.

SetApp - 100 Apps for everything you ever wanted to do on Mac

FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________






 

 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!

Visit XML Training Material Guide Homepage

 

 

“Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.”

Copyright - © 2004 - 2019 - All Rights Reserved.