Пример #1
0
 public static function load(&$form, $xmlString)
 {
     //first load the xml String
     try {
         $formXml = new SimpleXMLElement($xmlString);
     } catch (Exception $e) {
         return Logg('Failure', '', "BAD XML format.");
     }
     return SimpleXml::load($form, $formXml);
 }