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

DaYong Wu,Kien Tsong Chau,JingYi Wang,ChuTing Pan
DOI: https://doi.org/10.1145/3309074.3309124
2019-01-01
Abstract: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.
What problem does this paper attempt to address?