<?php

global $data;
global $theXMLParser;

//!! eZNews
//! startElement global callback used by the XML parser.
/*
 This function is a callback. It requires a global instance of an object.
 That object must have a function called startElement.
 */
function startElement( $parser, $name, $attrs='' )
{
    global $theXMLParser;
    $theXMLParser->startElement( $parser, $name, $attrs='' );
}

//!! eZNews
//! endElement global callback used by the XML parser.
/*
 This function is a callback. It requires a global instance of an object.
 That object must have a function called endElement.
 */
 
function endElement($parser, $name, $attrs='')
{
    global $theXMLParser;
    $theXMLParser->endElement( $parser, $name, $attrs='' );
}





//!! eZNews
//! addToOldTag global callback used by the XML parser.
/*
 This function is a callback. It requires a global instance of an object.
 That object must have a function called addToOldTag.
 */
function addToOldTag( $data )
{
    global $theXMLParser;    
    $theXMLParser->addToOldTag( $data );
}

//!! eZNews
//! characterData global callback used by the XML parser.
/*
 This function is a callback. It requires a global instance of an object.
 That object must have a function called characterData.
 */

function characterData($parser, $data)
{
    global $theXMLParser;
    $theXMLParser->characterData($parser, $data);
}
?>
