import javax.xml.XMLConstants;
import javax.xml.stream.XMLInputFactory;

public class Main {

    public static void main(String[] args) {
        try {
            XMLInputFactory xif = XMLInputFactory.newInstance();
            xif.setProperty(XMLConstants.ACCESS_EXTERNAL_DTD, "");
            xif.setProperty(XMLConstants.ACCESS_EXTERNAL_SCHEMA, "");
            xif.getProperty(XMLConstants.ACCESS_EXTERNAL_DTD);
            xif.getProperty(XMLConstants.ACCESS_EXTERNAL_SCHEMA);
            System.out.println(xif.getProperty(XMLConstants.ACCESS_EXTERNAL_DTD) == null);
            System.out.println(xif.getProperty(XMLConstants.ACCESS_EXTERNAL_SCHEMA) == null);
        } catch (Exception e) {
            System.out.println("An error occurred.");
            e.printStackTrace();
        }
    }
}
