DOM parser uses SAX2
Akash Opensource via xml <[email protected]> Mon, 11 Nov 2019 15:51:43 +0530
| Newsgroups | gmane.comp.gnome.lib.xml.general |
|---|---|
| Message-ID | <CANXHYOCs7q8JQsCh_QkqfqL34hk0esNFw4q7ZRx9h=RRs6XiXQ@mail.gmail.com> |
Hi All, I have a doubt regarding libxml2 . As I was reading info on XML parsers, I got to know two types DOM and SAX . DOM needs more memory to build the complete DOM tree. However SAX does partial incremental parsing and consumes less memory. But while checking libxml2 code I saw the DOM parser making calls to functions in sax2.c . So I am wondering why and how DOM can use SAX ? Are they not completely different ? Also tell me is there a way to get statement coverage for all the path in libxml2 source files. Can I get more test files ? Thanks & Regards Akash _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] https://mail.gnome.org/mailman/listinfo/xml