public boolean isMyType(final Document document) {
final Element rssRoot = document.getRootElement();
final String name = rssRoot.getName();
final Attribute version = rssRoot.getAttribute("version");
final DocType docType = document.getDocType();
return name.equals(ELEMENT_NAME) && version != null && version.getValue().equals(getRSSVersion()) && docType != null
&& ELEMENT_NAME.equals(docType.getElementName()) && PUBLIC_ID.equals(docType.getPublicID()) && SYSTEM_ID.equals(docType.getSystemID());
}