Abstract
This paper considers the problem of comparing the read time for a file containing an array of one-half million one-byte data values using a direct read time with the time required to read an equivalent XML file. The XML file uses a variable-length string encoding of the identifiers associated with each of the byte values. The XML file is about 180 times larger than the original file of byte values. Because the XML file is much larger and because the XML parsing requires substantially more computational work, reading the XML file on a Windows-based PC takes about 3,700 times longer than the direct read. The experimental study shows that the XML read time increases linearly with the size of the file. Given the increased read time and the increased probability of programming errors for the XML encoding, it appears that in cases where data archives are providing simple binary or text files of data that may be readily understood and read with short programs, then XML may not be an optimal choice for serving users or for preserving data.
Similar content being viewed by others
References
Ada Libre (2010) XML Ada available online at http://libre.adacore.com/libre/tools/xmlada/
Boehm BW (1981) Software engineering economics. Prentice-Hall, Upper Saddle River
Boehm BW, Abts C, Brown AW, Chulani S, Clark BK, Horowitz E, Madachy R, Reifer D, Steece B (2000) Software cost estimation With COCOMO II. Prentice-Hall, Upper Saddle River
Charlock T (2010) IGBP surface type for CERES SARB. Available online at http://www-surf.larc.nasa.gov/surf/pages/sce_type.html
Hennessy JL, Patterson DA (1996) Computer architecture: a quantitative approach, 2nd edn. Morgan Kaufmann, San Francisco
Open XML Editor (2009) Available online at http://www.philo.de/xmledit/
W3C (2003) See http://www.w3.org/DOM/faq.html#SAXandDOM
Author information
Authors and Affiliations
Corresponding author
Additional information
Communicated by: H. A. Babaie
Rights and permissions
About this article
Cite this article
Barkstrom, B.R. When is it sensible not to use XML?. Earth Sci Inform 4, 45–53 (2011). https://doi.org/10.1007/s12145-010-0063-2
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s12145-010-0063-2