Because of IE, use xmlNode.getAtribute(attr) != null instead of xmlNode.hasAttribute(attr)