I am retrieving XML from a web service and then loading it into MiniXml (PHP). When the file is smaller than 100k it parses just fine. Larger, and I get an error:
Call to a member function getElement() on a non-object
This is happening when I try to get the first element off of the root element.
$parsedDoc = new MiniXMLDoc();
$parsedDoc->fromString($xml);
$root =& $parsedDoc->getElement('my-root-element');
$lists =& $root->getElement($type);
The web service that I call allows me to specify the number of top level elements to call. The last element that takes the size over 100k is well formed and does not have any issues at all. The only thing that I can think of is size. In this case, does size matter?
Update: I believe this is a buffer problem, but I don't know which buffer is causing the problem. I am sure it isn't the "web service call" because I know that it is retrieving all of the data. Is it a PHP buffer or a MiniXml buffer that is causing the issue? Or is it something else entirely? (Thanks Dan for pointing this out)