You are here

function ARC_rdfxml_parser::create_parser in Taxonomy import/export via XML 6

Same name and namespace in other branches
  1. 5.2 arc/ARC_rdfxml_parser.php \ARC_rdfxml_parser::create_parser()
  2. 5 arc/ARC_rdfxml_parser.php \ARC_rdfxml_parser::create_parser()
  3. 6.2 arc/ARC_rdfxml_parser.php \ARC_rdfxml_parser::create_parser()
4 calls to ARC_rdfxml_parser::create_parser()
ARC_rdfxml_parser::init in arc/ARC_rdfxml_parser.php
ARC_rdfxml_parser::parse_data in arc/ARC_rdfxml_parser.php
ARC_rdfxml_parser::parse_file in arc/ARC_rdfxml_parser.php
ARC_rdfxml_parser::parse_web_file in arc/ARC_rdfxml_parser.php

File

arc/ARC_rdfxml_parser.php, line 147

Class

ARC_rdfxml_parser

Code

function create_parser() {
  $parser = xml_parser_create_ns($this->encoding, " ");
  xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 0);
  xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
  xml_set_element_handler($parser, "handle_open", "handle_close");
  xml_set_character_data_handler($parser, "handle_cdata");
  xml_set_start_namespace_decl_handler($parser, "handle_ns_decl");
  xml_set_object($parser, $this);
  $this->parser = $parser;
}