by 1va · 16y ago · 0 comments
* SAX is stream based. This is like "cat" or "tail" on a Linux system, there is no history besides what you yourself put together. If you don't need to walk up and down the tree (much) then this is by far more space and time efficient.
* DOM is tree based. This parses the whole document into memory and gives you an API for walking up and down it. If you need to jump around in the document, this may be the way to go, but note that parsing and storing the full document takes time and memory.
No comments yet.