Both XML and JSON are limited to the memory and processing capabilities of the hardware (memory, CPU) the parser is running on.