Eg:
$xmlstr ='<Address><to>Sriniva</to><from>Chennai</from><country>India</county></Address>';
ReadXml($xmlstr)
Output ->
Address
to: Srinivas
from: Chennai
country : India
Eg:
$xmlstr ='<Address><to>Sriniva</to><from>Chennai</from><country>India</county></Address>';
ReadXml($xmlstr)
Output ->
Address
to: Srinivas
from: Chennai
country : India
You could use the XML functions, but using XSLT would be another decent option.