This method of the Document class retrieves the document type URL.
public final String getDTDURL();
Returns the URL specified in the <!DOCTYPE> tag or null if an internal DTD was specified.