11 Aug 2010

If XML file is too big for AJAX


I found this article which is quite useful. What will you do if XML file is too big.

  1. Transform the XML documents into a character string.
  2. Split the character string into equal chunks (400 characters).
  3. Save each chunk as a value in an array.
  4. Transfer the chunks one by one using the Ajax mechanism into the final XML document.

Til next time,
noppanit at 00:00