rendered paste body<?php$tag = "";$artist = array();$track = array();function tagstart($xmlparser, $element, $attributes){ global $tag; if ($element == "artist") { $tag = "artist"; }}function tagend($xmlparser, $element){ }function tagcontents($xmlparser, $contents){ global $tag; if ($tag == "artist") { $artist[] .= $contents; } if ($tag == "track") { $track[] .= $contents; }}$xmlparser = xml_parser_create();xml_parser_set_option($xmlparser, XML_OPTION_CASE_FOLDING, false);xml_set_element_handler($xmlparser, "tagstart", "tagend");xml_set_character_data_handler($xmlparser, "tagcontents");$xml = file("recenttracks.xml");foreach ($xml as $line){ xml_parse($xmlparser, $line);}xml_parser_free($xmlparser);print "Artists:";print_r($artist);foreach ($artist as $arts){ print "$arts <br />";}?>