View Single Post
  #2 (permalink)  
Old 03-31-2008, 04:49 PM
DonCash's Avatar
DonCash DonCash is offline
Moderator
 
Join Date: Aug 2007
Location: London, UK
Posts: 237
DonCash will become famous soon enoughDonCash will become famous soon enough
I personally like to use DOM parse.

They both have their advantages and it all depends on exactly what you want to do.

DOM is quite heavy on memory. This is because it reads the entire document into memory before processing. DOM has the advantage of being able to insert or delete nodes and also has the ability to traverse in any direction.

SAX is a lot easier on memory and it parses Node by Node. The disadvantages are that you cannot insert or delete a node, and it will only traverse from top to bottom.

A Google search will reveal all!

ONJava.com -- Using DOM to Traverse XML

Let me know if you need any more help and I will post a few examples for you here.
__________________
Did this post help you? Please
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
me!

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|| Don't forget to:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote