You are here

function taxonomy_xml_element_start in Taxonomy import/export via XML 5

Same name and namespace in other branches
  1. 5.2 xml_format.inc \taxonomy_xml_element_start()
  2. 6.2 xml_format.inc \taxonomy_xml_element_start()
  3. 6 xml_format.inc \taxonomy_xml_element_start()
  4. 7 formats/xml_format.inc \taxonomy_xml_element_start()

Call-back function used by the XML parser.

1 string reference to 'taxonomy_xml_element_start'
taxonomy_xml_xml_parse in ./xml_format.inc
Initiate the parser on the custom XML schema.

File

./xml_format.inc, line 70
Include routines for the original XML parsing and taxonomy/term creation.

Code

function taxonomy_xml_element_start($parser, $name, $attributes) {
  global $_tx_term, $_tx_element, $_tx_tag;
  switch ($name) {
    case 'vocabulary':
      $_tx_element = $name;
      break;
    case 'term':
      $_tx_element = $name;
      $_tx_term += 1;
  }
  $_tx_tag = $name;
}