How to parse xml |
Hi guys, I have xml as string.
I can't take "value". Can you help me? Example xml Code: <?xml version="1.0" encoding="utf-8" ?> I need value of "sonucKodu" I mean "E2003". I didn't handle. I used this code for taking value. Code: $dom = new DOMDocument();
You could use SimpleXML...
Code: $doc = simplexml_load_string($xml);
James Parry
Project Lead
You could try this:
PHP Code: $dom = new DOMDocument(); |
Welcome Guest, Not a member yet? Register Sign In |