You are here

function ARC_rdfxml_parser::handle_open in Taxonomy import/export via XML 5

Same name and namespace in other branches
  1. 5.2 arc/ARC_rdfxml_parser.php \ARC_rdfxml_parser::handle_open()
  2. 6.2 arc/ARC_rdfxml_parser.php \ARC_rdfxml_parser::handle_open()
  3. 6 arc/ARC_rdfxml_parser.php \ARC_rdfxml_parser::handle_open()

File

arc/ARC_rdfxml_parser.php, line 344

Class

ARC_rdfxml_parser

Code

function handle_open($parser, $tag, $attrs) {

  /* echo "at state ".$this->state." opening ".$tag."\n"; */
  switch ($this->state) {
    case 2:

      /* expecting p open */
      $this
        ->handle_open_2($tag, $attrs);
      break;
    case 4:

      /* expecting sub_node */
      $this
        ->handle_open_4($tag, $attrs);
      break;
    case 1:

      /* expecting s open */
      $this
        ->handle_open_1($tag, $attrs);
      break;
    case 6:

      /* expecting xml data */
      $this
        ->handle_open_6($tag, $attrs);
      break;
    default:
      echo "unexpected handle_open call (at state " . $this->state . ") (" . $tag . ") \n";
  }
}