Code example for DOMResult

Methods: getNode

0
    } 
 
    public void setDOMResult(DOMResult result) {
        fIgnoreChars = false;
        if (result != null) {
            final Node target = result.getNode();
            fDocument = (target.getNodeType() == Node.DOCUMENT_NODE) ? (Document) target : target.getOwnerDocument();
            fDocumentImpl = (fDocument instanceof CoreDocumentImpl) ? (CoreDocumentImpl) fDocument : null;
            fStorePSVI = (fDocument instanceof PSVIDocumentImpl);
            return; 
        } 
        fDocument = null;
        fDocumentImpl = null;
        fStorePSVI = false;
    } 
 
    public void doctypeDecl(DocumentType node) throws XNIException {}
 
    public void characters(Text node) throws XNIException {}
 
    public void cdata(CDATASection node) throws XNIException {}