If this is startElement method of your XML parser, you'll get attributes printed out this way:
function startElement($parser, $name, $attrs) {
while (list ($key, $val) = each ($attrs)) {
echo "<BR><FONT COLOR='red'>$key => $val<br></FONT>";
}
}
Is that what you need?