@Test public void transformAnimalToString() { assertEquals("<?xml version=\"1.0\" encoding=\"UTF-8\"?><dog/>", t.transformToString()); }
public String transformToString() { StringWriter sw = new StringWriter(); transformTo(new StreamResult(sw)); return sw.toString(); }
Transformation { public String transformToString() { StringWriter sw = new StringWriter(); transformTo(new StreamResult(sw)); return sw.toString(); } }
Transformation { public String transformToString() { StringWriter sw = new StringWriter(); transformTo(new StreamResult(sw)); return sw.toString(); } Transformation();  Transformation(Source s); }
Transformation { public String transformToString() { StringWriter sw = new StringWriter(); transformTo(new StreamResult(sw)); return sw.toString(); } 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 String transformToString() { StringWriter sw = new StringWriter(); transformTo(new StreamResult(sw)); return sw.toString(); } 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();  }