Remove getAttributeByName method in XmlTools

It's unneccessary since there is getAttribute method.