How to access? 1. This works: <name>Joe</name> nameElement[0].firstChild.nodeValue returns "Joe" 2. This does not work: <name></name> nameElement[0].firstChild.nodeValue creates an error. I have tried using a boolean operator to evaluate it (if nameElement....), but that does not work, eit...
I found the issue, but still need some help dealing with it. When, I open my xml file in Excel and edit it, and then save it back, Excel puts encoding tags in it as follows: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><state xmlns:xsi="http://www.w3.org/...
:banghead: This is killing me. It worked for so long, and now, it doesn't. This is an xml file. I found file_get_contents to be more reliable, so I went that route. It worked for days, up until last night. I have no clue what I changed, and what it used to be before I broke it. Whatever it was, it h...
Well, it turns out is not a size issue (as far as I can tell). It was finding "junk after document element," but for the life of me, there was none (or if there was, it was invisible). I changed the file load type as follows from simplexml to just plain-old contents, and it's okay. Sorry f...
Incidentally, I modified the code to only allow for pulling the first 4 of 150+ polygons. It still works, so there is nothing wring with the polygon coding. This clearly has to be a problem with the size of the ResponseXML.
httpRequest calls php and gets ResponseXML. Php dynamically builds return variable to echo back to js. If return is small, it works fine, and js receives it, and all is good. If the return is large (2.5 megs), readystate=4 does not occur, and js reports my RespnseXML as null. Of course, this causes ...
Also, I forgot to add, this php file is called from javascript. If I go to my browser's address bar and call it directly (supllying the parameter), it echos back everything.
So, the more I think about it, logic tells me this error is on the clinet side in javascript.
Don't know if this is a client or server side issue, but responseXML is not retrieved/sent if it is large. In my case, it dies when trying to send an xml of about 2.5 megs back to client.