public function parse($text) {
      $this->queue = array();
      $this->parser = xml_parser_create();        
      $this->parsed = 0;     
      $this->opened = 0;
      xml_set_object($this->parser, $this);
      xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, 0);
      xml_parser_set_option($this->parser, XML_OPTION_SKIP_WHITE, 1);
      $code = xml_parse_into_struct($this->parser, $text, $vals, $index); 
      /**
       * Parse into bAML
       * type structure
       * 
       */ 
      if ($code != 0) {
        return XMLUtility::Make($this, $vals); 
      }
        
      throw new \CatapultApiException("Provided text was not valid XMLUtility..");
    }
public function parse($text) {
      $this->queue = array();
      $this->parser = xml_parser_create();        
      $this->parsed = 0;     
      $this->opened = 0;
      xml_set_object($this->parser, $this);
      xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, 0);
      xml_parser_set_option($this->parser, XML_OPTION_SKIP_WHITE, 1);
      $code = xml_parse_into_struct($this->parser, $text, $vals, $index); 
      /**
       * Parse into bAML
       * type structure
       * 
       */ 
      if ($code != 0) {
        return XMLUtility::Make($this, $vals); 
      }
        
      throw new \CatapultApiException("Provided text was not valid XMLUtility..");
    }
public function parse ( $ text ) { $ this -> queue = array ( ) ; $ this -> parser = xml_parser_create ( ) ; $ this -> parsed = 0 ; $ this -> opened = 0 ; xml_set_object ( $ this -> parser , $ this ) ; xml_parser_set_option ( $ this -> parser , XML_OPTION_CASE_FOLDING , 0 ) ; xml_parser_set_option ( $ this -> parser , XML_OPTION_SKIP_WHITE , 1 ) ; $ code = xml_parse_into_struct ( $ this -> parser , $ text , $ vals , $ index ) ; /**
       * Parse into bAML
       * type structure
       * 
       */ if ( $ code != 0 ) { return XMLUtility :: Make ( $ this , $ vals ) ; } throw new \ CatapultApiException ( "Provided text was not valid XMLUtility.." ) ; }
parse the provided text.
generate a parser here
we usually wouldnt need to
have one initialized with the
object.

@param text: valid BaML markup
parse the provided text . generate a parser here we usually wouldnt need to have one initialized with the object .