-void process_xml_element_node(xmlNodePtr node, xmlChar **record_pp)
-{
- /* remember indexing instruction from PI to next element node */
- xmlChar *index_p = 0;
-
- printf("ELEM %s\n", xmlGetNodePath(node));
-
- /* check if we are an element node in the special zebra namespace
- and either set record data or index value-of node content*/
- process_xml_element_zebra_node(node, record_pp);
-
- /* loop through kid nodes */
- for (node = node->children; node; node = node->next)
- {
- /* check and set PI record and index index instructions */
- if (node->type == XML_PI_NODE){
- process_xml_pi_node(node, record_pp, &index_p);
- }
- else if (node->type == XML_ELEMENT_NODE){
- /* if there was a PI index instruction before this element node */
- if (index_p){
- index_value_of(node, index_p);
- index_p = 0;
- }
- process_xml_element_node(node, record_pp);
- }
- else
- continue;
- }
-}
-
-
-/* DOM filter style indexing */
-int process_xml_pi_node(xmlNodePtr node, xmlChar **record_pp,