Here is the list of problems with correct answers for Elance PHP5 Code Test: 1. recursive xml traversal: function ReadXml($xmlstr) { static $res = ”; $xml = new SimpleXMLElement($xmlstr); if(count($xml->children())) { $res .= $xml->getName().PHP_EOL; foreach($xml->children() as $child) { ReadXml($child->asXML()); } } else { $res .= $xml->getName().’: ‘.(string)$xml.PHP_EOL; } return $res; }