This method of the Document class retrieves the standalone information.
public final String getStandalone();
Returns the standalone attribute stored in the <XML...?> tag.