private static final String PUBLIC_ID = "-//Netscape Communications//DTD RSS 0.91//EN";
private static final String SYSTEM_ID = "http://my.netscape.com/publish/formats/rss-0.91.dtd";
private String getVariant(Document document) {
String variant = USERLAND;
DocType docType = document.getDocType();
if (docType!=null) {
boolean ok = ELEMENT_NAME.equals(docType.getElementName());
ok = ok && PUBLIC_ID.equals(docType.getPublicID());
ok = ok && SYSTEM_ID.equals(docType.getSystemID());
if (ok) {
variant = NETSCAPE;
}
}
return variant;