DomUtil.checkHasXml: use hasXml() instead of getXmlElement()