getTypeForXmlNode added.