Using the code here: http://www.w3schools.com/php/php_xml_parser_expat.asp
How would you get the attributes using the switch (if possible) for each one if the XML file was like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<note>
<to id="01">Tove</to>
<from id="02">Jani</from>
<heading color="#CEAF33">Reminder</heading>
<body type="small" important="low">Don't forget me this weekend!</body>
</note>