PDA

View Full Version : XML DOM vs SAX


atforum
Jul 31st, 2006, 12:36 AM
Any xml developers out here?? If so which one do you use mostly XML DOM or XML SAX??


thanks

Cyber6
Jul 31st, 2006, 01:12 AM
Any xml developers out here?? If so which one do you use mostly XML DOM or XML SAX??


thanks

What is it going to be used for ??

atforum
Jul 31st, 2006, 01:19 AM
What is it going to be used for ??

I am asking in general. Do you guys prefer one over the other in the normal case?? or does it depend on the usual size things - small size use dom and large size xml use sax??

Cyber6
Jul 31st, 2006, 01:33 AM
I am asking in general. Do you guys prefer one over the other in the normal case?? or does it depend on the usual size things - small size use dom and large size xml use sax??


That's a general statement. I'll rather use DOM just for the ease of programming. DOM parse in a tree-model way, easy for navigation since is in memory. SAX parse in a sequencially and doesn't allows for backward navigation. I've always used DOM, and in my 5+ years of SGML/XML authoring/programming always seen DOM used.


C.

atforum
Jul 31st, 2006, 01:51 AM
That's a general statement. I'll rather use DOM just for the ease of programming. DOM parse in a tree-model way, easy for navigation since is in memory. SAX parse in a sequencially and doesn't allows for backward navigation. I've always used DOM, and in my 5+ years of SGML/XML authoring/programming always seen DOM used.
C.

thanks for the info.