I am using NuSoap for webservice. In response, I get xml with a namespace something like:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <Action xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none" s:mustUnderstand="1">ABC.CS.Ia.Cts.Ees.Au/IAuth/A</Action> </s:Header> <s:Body> <A xmlns="ABC.CS.Ia.Cts.Ees.Au"> <Au xmlns:d1="ABC.CS.Ia.Cts.Ees.Au" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <d1:Res>Q1</d1:Res> <d1:n>jFn</d1:n> </Au> </A> </s:Body> </s:Envelope>
$ xml_feed = simplexml_load_string ($ xmlString);
Now I want to take it apart. I used the simplexml_load_string function, but I get a warning and the function returns nothing.
Warning: simplexml_load_string () [function.simplexml-load-string]: Entity: line 7: parser warning: xmlns: URI BC.CS.Ia.Cts.Ees.Au is not absolute in C: \ xampp \ htdocs \ test .php on line 38 Warning: simplexml_load_string () [function.simplexml-load-string]: in C: \ xampp \ htdocs \ test.php on line 38 Warning: simplexml_load_string () [function.simplexml-load-string]: ^ in C: \ xampp \ htdocs \ test.php on line 38
Please help me if anyone knows ..
-itin
source share