function GetXMLAttributeX($xml, $attrname, &$dest) { $value = FSJ_XML::findAttribute($xml, $attrname); if (!is_null($value)) { $dest = (string) $value; } }