public static function joinTree($verbs) {
      $str = '';

      if (sizeof($verbs) > 0) {

        foreach ($verbs as $v) {
          $str .= self::openTag($v->getName(), $v->getAttributes());

          if ($v->hasVerbs()) {
            $str .= self::joinTree($v->getVerbs());    
          }

          $str .= $v->getText();


          $str .= self::closeTag($v->getName());
        }
      }

      return $str;
    }
public static function joinTree($verbs) {
      $str = '';

      if (sizeof($verbs) > 0) {

        foreach ($verbs as $v) {
          $str .= self::openTag($v->getName(), $v->getAttributes());

          if ($v->hasVerbs()) {
            $str .= self::joinTree($v->getVerbs());    
          }

          $str .= $v->getText();


          $str .= self::closeTag($v->getName());
        }
      }

      return $str;
    }
public static function joinTree ( $ verbs ) { $ str = '' ; if ( sizeof ( $ verbs ) > 0 ) { foreach ( $ verbs as $ v ) { $ str .= self :: openTag ( $ v -> getName ( ) , $ v -> getAttributes ( ) ) ; if ( $ v -> hasVerbs ( ) ) { $ str .= self :: joinTree ( $ v -> getVerbs ( ) ) ; } $ str .= $ v -> getText ( ) ; $ str .= self :: closeTag ( $ v -> getName ( ) ) ; } } return $ str ; }
simple xml join tree
sax wrapper around PHP's XML parser does
not provide
@param verbs: BaMLVerbs [array]
simple xml join tree sax wrapper around PHP s XML parser does not provide