Example usage for org.w3c.dom Document getStrictErrorChecking

List of usage examples for org.w3c.dom Document getStrictErrorChecking

Introduction

In this page you can find the example usage for org.w3c.dom Document getStrictErrorChecking.

Prototype

public boolean getStrictErrorChecking();

Source Link

Document

An attribute specifying whether error checking is enforced or not.

Usage

From source file:Main.java

License:asdf

public static void main(String args[]) throws Exception {
    DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = builderFactory.newDocumentBuilder(); // Create the parser
    Document xmlDoc = builder.parse(new InputSource(new StringReader(xmlString)));

    System.out.println(xmlDoc.getStrictErrorChecking());

}