Skip to main content
Log in

When is it sensible not to use XML?

  • Software Article
  • Published:
Earth Science Informatics Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Listing 1
Listing 2
Listing 3
Listing 4
Fig. 3
Listing 5

Similar content being viewed by others

References

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Bruce R. Barkstrom.

Additional information

Communicated by: H. A. Babaie

Rights and permissions

Reprints 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

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s12145-010-0063-2

Keywords

Navigation