I have something like this:
<client type="s" name="root" desc="" protocol="server" protocolext="" au="0" thid="0x15e9190">
<request="0000" srvid="0000" time="" history="" answered=""></request>
<times login="2013-04-16T10:59:16+0200" online="7001" idle="0"></times>
<connection ip="127.0.0.1" port="0">OK</connection>
</client>
Now, i need to parse this data into a PHP variables, something like this:
$client_type = s; $name = root; $conn_ip = 127.0.0.1;
...and so on,is there a way to do that?
Tried bash, but it would be much easier if it can be done with php