fork download
  1. import javax.xml.parsers.DocumentBuilder;
  2. import javax.xml.parsers.DocumentBuilderFactory;
  3. import javax.xml.parsers.ParserConfigurationException;
  4. import org.w3c.dom.Document;
  5.  
  6. public class Main {
  7. public static void main(String[] args) throws ParserConfigurationException {
  8. DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
  9. DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
  10. Document doc = docBuilder.newDocument();
  11.  
  12. System.out.println(doc.getClass());
  13. }
  14. }
Success #stdin #stdout 0.1s 380800KB
stdin
Standard input is empty
stdout
class com.sun.org.apache.xerces.internal.dom.DocumentImpl