reading xml

Read XML in PHP from .Net Web Service

$url = 'your-webservice-url-here';
$xp =  new DomDocument();
$xp->load($url);
$tables = $xp->getElementsByTagName('Table');
foreach($tables as $table){
	$nodeA = $table->getElementsByTagName('ORDER_NUMBER');
	echo $nodeA->item(0)->nodeValue;
}
Advertisements