This method of the Document class determines whether the loaded XML is case-insensitive.
public boolean isCaseInsensitive();
Returns whether the loaded XML is case-insensitive. The default is yes.