0

In my javascript web app, I'm loading XML files in two ways. 1) via an ajax call, and 2) as the response from submitting a form to the server. The result of each load is an XMLDocument. I then try and read the data out of this document.

This works fine in IE7. In Chrome method (1) works fine, however, when the same document is loaded via method (2) in a CDataSection node the value of "nodeValue" is limited to 300 characters. The full text only appears in "wholeText".

Any ideas on why this would be or how I can get nodeValue to work in both situations?

alumb
  • 4,381
  • 8
  • 43
  • 52
  • Can you use tools like Firebug to confirm at which point the cut-off takes place? – Pekka Feb 17 '11 at 22:27
  • as soon as the XMLDocument is loaded it is cut off. responseXML.firstChild.childNodes[3].childNodes[1].childNodes[1].firstChild.nodeValue is cut off as soon as the document is laoded. – alumb Feb 17 '11 at 22:30
  • possible duplicate of [Is there a 4096 character limit for JavaScript XML text nodes?](http://stackoverflow.com/questions/1967741/is-there-a-4096-character-limit-for-javascript-xml-text-nodes) – Paul Sweatte May 14 '14 at 16:35

0 Answers0