Because att is a method, that you call with the syntax $hometeam ->att('href');?
In reply to Re^3: extracting href data in XML by mirod in thread extracting href data in XML by kanz0r