phpでxmlを扱うにも、いろいろな方法があります。文字列のxmlを読み込んで解析し、xmlの内容を出力します。
<?php
// set XML
$xml_str = <<<XML
<?xml version='1.0'?>
<items>
<item id="101">
<name>石鹸</name>
<price>510</price>
</item>
<item id="102">
<name>ブラシ</name>
<price>330</price>
</item>
</items>
XML;
// analyze XML
$xml = simplexml_load_string($xml_str);
// display each item info
foreach ($xml->item as $it){
$attr = $it->attributes();
echo "(id:".$attr["id"].")";
echo $it->name." - ".$it->price." 円\n";
}