title: How do I get xml data into php array in TCP/IP socket?
body: <p>Can anyone give me solution about storing xml data in php array. I have taken data in
  $result = socket_read ($socket, 1024) or die(&quot;Could not read server response\n&quot;);
  but its not converting into php array when I tried simplexml_load_string($result),Its shows me</p>
  <blockquote>
  <p>Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '&lt;' not found in /opt/lampp/htdocs/php/socket.php on line 115</p>
  <p>Warning: simplexml_load_string(): in /opt/lampp/htdocs/php/socket.php on line 115</p>
  <p>Warning: simplexml_load_string(): ^ in /opt/lampp/htdocs/php/socket.php on line 115</p>
  </blockquote>
  <p>Please help,
  Thanks in advance</p>