XML:getAttributes([path])
Retourner la valeur de tous les attributs d'un élément sous forme de tableau
Si aucun chemin n'est spécifié, getAttributes renvoie les attributs de l'élément actuel.
Exemple
doc = XML.parse([[<config><options type="test"/></config>]])
attributes = doc:getAttributes('/config/options')
if attributes.type != 'test' then
error("Invalid result!",0)
end