- utf8_decode: documentation ( source)
- simplexml_load_file: documentation ( source)
<?php
$link = "http://webmax.hayamax.com.br/crossdock/servlet/CrossDockingServlet.class.php?action=crossDockingPrice&customerId=140040&compress=0&canal=C6";
$xml = simplexml_load_file($link) -> product;
foreach($xml -> item as $item){
echo "<strong>prod_id:</strong> ".utf8_decode($item -> prod_id)."<br />";
echo "<strong>brand:</strong> ".utf8_decode($item -> brand)."<br />";
echo "<br />";
}
?>