Grazie eiyen per il tuo aiuto![]()
ho trovato la soluzione qui http://files.benramsey.com/talks/200...b-Services.pdf pagina 28.
posto il codice sarà sicuramente utile a qualcuno...
alla fine molto più facile di come l'avevo pensata!Codice PHP:
$url = 'https://webservice.abc.com/?action=listcategorie s &usern=xxx&passwd=yyy';
$ResultSet = new SimpleXMLElement($url,null,true);
echo "<h3>Categorie presenti nel webservice (".count($ResultSet->categories->category).")</h3>";
echo "[list=1]";
foreach($ResultSet->categories as $categories)
{
foreach($ResultSet->categories->category as $category)
{
if(strlen($category[code])<=3){
$ini='';
$fin='';
}else{
$ini='<ul>';
$fin='[/list]';
}
echo $ini.'[*]'.$category.' ('.$category[code].') '.$fin;
}
}
echo "[/list]";
![]()
bye