J Example Sci Journal of Example Science 0000-0000 Example Press 10.5555/example.2026.001 Validating large XML files in the browser Example Ada 1 Example University, Example City 15 10 2026 12 3 e101 © 2026 The Author 2026 This article is distributed under the Creative Commons Attribution 4.0 License.

We measure memory use while validating XML documents of up to 1 GB with a streaming parser.

XML streaming validation
Introduction

Memory use stays flat as the document grows (Figure 1), with a total cost of O(n) in time [1].

Peak memory against document size.

References Knuth D. E. The Art of Computer Programming 1997 Addison-Wesley