I have recently ventured into the world of xml and am successfully updating data from an xml file but am having difficulty when there is a problem in the xml. I have solved the problem of trying to copy a file that is missing using file_exists but my latest issue doesn't even allow me to reach that point besides which the file referred to does exist so I need to actually trap the error at source - any ideas?
Fatal error: Call to a member function getElementsByTagName() on a non-object in /homepages/36/d88310874/htdocs/mydata/XML/bringData.php5 on line 77
The tag is <image> apparently identical to 400+ other records, the url within the tag is correct and the image exists.
If I remove the offending line from the xml file all the other 25000+ lines read and import perfectly. Baffled does not begin to describe it. Xml is still pretty much a mystery so all help greatly appreciated but keep it simple please
Fatal error: Call to a member function getElementsByTagName() on a non-object in /homepages/36/d88310874/htdocs/mydata/XML/bringData.php5 on line 77
The tag is <image> apparently identical to 400+ other records, the url within the tag is correct and the image exists.
If I remove the offending line from the xml file all the other 25000+ lines read and import perfectly. Baffled does not begin to describe it. Xml is still pretty much a mystery so all help greatly appreciated but keep it simple please