Re: get attribute value from an XML tag



Alex wrote:
how do i get the attribute "href" value using the following script ?

[...]
function startTag($parser, $data){
global $current_tag;
$current_tag .= "*$data";
}


By adding support for a third argument to this functions, which will either
be null or an array containing the attribute names and their values (when
available).

See: http://www.php.net/xml_set_element_handler


JW


.