//$reagent2_count = $item_xml->itemInfo->item->createdBy->spell->reagent[1]->attributes()->count;
//echo "<br>[reagent][1] => " . $reagent2_count;
//$reagent2_icon = $item_xml->itemInfo->item->createdBy->spell->reagent[1]->attributes()->icon;
//echo "<br>[reagent][1][icon] => " . $reagent2_icon;
//$reagent2_id = $item_xml->itemInfo->item->createdBy->spell->reagent[1]->attributes()->id;
//echo "<br>[reagent][1][id] => " . $reagent2_id;
//$reagent2_name = preg_replace('/[A-Za-z0-9 ."!?&:]/', '', $item_xml->itemInfo->item->createdBy->spell->reagent[1]->attributes()->name);
//echo "<br>[reagent][1][name] => " . $reagent2_name;
//$reagent2_quality = $item_xml->itemInfo->item->createdBy->spell->reagent[1]->attributes()->quality;
//echo "<br>[reagent][1][quality] => " . $reagent2_quality;
the above doesnt show in every xml page i phase and it if doesnt it locks up the script
how can i check to see if the xml fields are in the document and if not the skip the code
thank
herb