php Programming Glossary: xdoc
PHP DOMDocument error handling http://stackoverflow.com/questions/1759069/php-domdocument-error-handling case I need to handle errors. I have the following code xdoc new DOMDocument try xdoc load url This line causes Warning DOMDocument.. errors. I have the following code xdoc new DOMDocument try xdoc load url This line causes Warning DOMDocument load ... domdocument.load.. failed HTTP 1.1 404 Not Found in ... catch Exception e xdoc null if xdoc null Handle else Proceed I know I probably doing..
PHP: Check if XML node exists with attribute http://stackoverflow.com/questions/699821/php-check-if-xml-node-exists-with-attribute find on Google tells me to do something like the following xdoc getElementsByTagName 'building' item 0 getAttributeNode 'name'..
|