function taxonomy_xml_element_start in Taxonomy import/export via XML 7
Same name and namespace in other branches
- 5.2 xml_format.inc \taxonomy_xml_element_start()
- 5 xml_format.inc \taxonomy_xml_element_start()
- 6.2 xml_format.inc \taxonomy_xml_element_start()
- 6 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 formats/
xml_format.inc - Initiate the parser on the custom XML schema.
File
- formats/
xml_format.inc, line 90 - 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;
}