This method of the Document class retrieves the version information.
public final String getVersion();
Returns the version number stored in the <?XML ...?> tag.