Check your xml very carefully, the load does not cope with or report errors well. Try using $.ajax and add an 'error:' section. Then see if you get an parser error, if so start removing nodes until the error goes away, and then look very very carefully at the xml. I have had this kind of problem many times. It would be nice if the parser could give us some kind of better information as to where and what the error was.
On May 3, 9:11 pm, nurikabe <eaow...@gmail.com> wrote: > I'm having trouble reading a not-so-large local XML file. The > following code works fine for under 70 nodes: > > // load values from the xml file > $.get('dic.xml', function(dicXml){ > $('node', dicXml).each(function(){ > var literal = $(this).find('literal').text(); > // do something > }); > }); > > But if I add more nodes to the xml file, it mysteriously fails. (It > won't read any nodes at all..) > > Is there some kind of size limit (memory, file, etc) when it comes to > reading XML files with JQuery? Or maybe there is a more preferred way > to do this? > > BTW, my limited knowledge of JQuery and XML comes from this WebMonkey > article:http://www.webmonkey.com/tutorial/Easy_XML_Consumption_using_jQuery?o...