A comparative study on performance of XML parser APIs (DOM and SAX) in parsing efficiency

Dayong Wu, Kien Tsong Chau, Jingyi Wang, ChuTing Pan · 2019

As a semi-structure language, XML is widely used in converting unstructured data to structured data due to its simplicity, extendibility and interoperability. There are numerous XML parser APIs that perform the same function of parsing XML document. This paper compares the performance between two famous XML parser APIs, DOM and SAX, in terms of speed, memory consumption and modifiability in parsing process. This experiment concluded that DOM API takes more time, more memory with higher level of modifiability while SAX API takes less time, less memory with lower level of modifiability.

Read the paper · More papers on PaperTik