@Test public void transformAnimalToDocument() { Document doc = t.transformToDocument(); assertEquals("dog", doc.getDocumentElement().getTagName()); }
public Document transformToDocument() { DOMResult r = new DOMResult(); transformTo(r); return (Document) r.getNode(); }
Transformation { public Document transformToDocument() { DOMResult r = new DOMResult(); transformTo(r); return (Document) r.getNode(); } }
Transformation { public Document transformToDocument() { DOMResult r = new DOMResult(); transformTo(r); return (Document) r.getNode(); } Transformation();  Transformation(Source s); }
Transformation { public Document transformToDocument() { DOMResult r = new DOMResult(); transformTo(r); return (Document) r.getNode(); } Transformation();  Transformation(Source s); void setSource(Source s); void setStylesheet(Source s); void addOutputProperty(String name, String value); void clearOutputProperties(); void addParameter(String name, Object value); void clearParameters(); void setFactory(TransformerFactory f); void setURIResolver(URIResolver r); void setErrorListener(ErrorListener l); void transformTo(Result r); String transformToString(); Document transformToDocument(); }
Transformation { public Document transformToDocument() { DOMResult r = new DOMResult(); transformTo(r); return (Document) r.getNode(); } Transformation();  Transformation(Source s); void setSource(Source s); void setStylesheet(Source s); void addOutputProperty(String name, String value); void clearOutputProperties(); void addParameter(String name, Object value); void clearParameters(); void setFactory(TransformerFactory f); void setURIResolver(URIResolver r); void setErrorListener(ErrorListener l); void transformTo(Result r); String transformToString(); Document transformToDocument();  }