Code example for DOMSource

Methods: getNodegetSystemId

    if (source instanceof DOMSource)
      DOMSource dsource = (DOMSource) source;
      node = dsource.getNode();
      baseID = dsource.getSystemId();
      isource = SAXSource.sourceToInputSource(source);
      baseID = isource.getSystemId();
    // What I try to do here is parse until the first startElement 
    // is found, then throw a special exception in order to terminate  
    // the parse. 
    StylesheetPIHandler handler = new StylesheetPIHandler(baseID, media,
                                    title, charset);
Connect your IDE to all the code out there  Get Codota for Java