I have a XML data like this :
<root>
<log realm="ABC" at="Wed Oct 15 00:00:02 2014.211" lifespan="2279ms">
<receive>
<isomsg direction="IN">
<header>6000911384</header>
<field id="0" value="0800"/>
<field id="3" value="980000"/>
<field id="11" value="000852"/>
</isomsg>
</receive>
</log>
</root>
how can I transform that XML data into table like this :
AT |lifespan|direction |ID |Value
---------------------------------------------
Wed Oct 15 2014|2279ms |in |0 |0800
Wed Oct 15 2014|2279ms |in |3 |980000
Wed Oct 15 2014|2279ms |in |11 |000852