> As John noted at the end... I do not have control over the format of > the XML... but thanks.... I will try... BTW i am using PHP4 is > SimpleXML able to be used and if so how?
I would just use John's regex idea, I am guessing (i could be wrong though, I have been many times before) that the format is not going to change much $str = file_get_contents('http://www.dhs.gov/dhspublic/getAdvisoryCondition'); preg_match('/CONDITION="([^"]+)"/',$str,$match); echo $match[1]; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php