How to parse xml namespaces with DOMDocument and be sure to get objects [duplicate]
I'm trying to parse a xml response from other server. I can get my needed objects from that xml. but some times and some how, I cant get some objects. and this error appears. Fatal error: Call to a member function getElementsByTagName() on a non-object in line 91 I checked every thing and I think there is nothing wrong. here is an example xml response: <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:domain="http://epp.nic.ir/ns/domain-1.0"> <response xmlns:domain="http://epp.nic.ir/ns/domain-1.0"> <result code="1000"> <msg>Command completed successfully</msg> </result> <resData xmlns:domain=
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.