Code example for DOMSource

Methods: getNode

0
          } 
      } 
    else if (source instanceof DOMSource)
      { 
        DOMSource ds = (DOMSource) source;
        Node node = ds.getNode ();
        if (!(node instanceof GnomeDocument))
          { 
            String msg = "Node is not a GnomeDocument";
            throw new TransformerConfigurationException (msg);
          } 
        GnomeDocument doc = (GnomeDocument) node;
        stylesheet = newStylesheetFromDoc (doc);
      } 
    else 
      { 
        String msg = "Source type not supported (" + source + ")";
        throw new TransformerConfigurationException (msg);
      } 
  } 
Connect your IDE to all the code out there  Get Codota for Java