Code example for DOMImplementation

Methods: createDocument

0
    return impl;
  } 
   
  public Document newDocument()
  { 
    return impl.createDocument(null, null, null);
  } 
 
  public Document parse(InputStream in)
    throws SAXException, IOException 
  { 
    LSInput input = ls.createLSInput();
    input.setByteStream(in);
    try 
      { 
        return parser.parse(input);
      } 
    catch (LSException e)
      { 
        Throwable e2 = e.getCause();
        if (e2 instanceof IOException)