function GetElementAttributes ($xml, $tag) { if (false === ($startpos = strpos($xml, "<".$tag))) { return false; } $endpos = strpos($xml, ">", $startpos); $tag_data = substr($xml, $startpos, $endpos); $attributes = split(" ", $tag_data); for ($i=1; $i