@Test public void domSourceToDocument() throws Exception { Document d = animalDocument(); convertToDocumentAndAssert(new DOMSource(d)); assertSame(d, Convert.toDocument(new DOMSource(d))); }
public static Document toDocument(Source s) { Document d = tryExtractDocFromDOMSource(s); return d != null ? d : toDocument(s, DocumentBuilderFactoryConfigurer.Default.configure(DocumentBuilderFactory.newInstance())); }
Convert { public static Document toDocument(Source s) { Document d = tryExtractDocFromDOMSource(s); return d != null ? d : toDocument(s, DocumentBuilderFactoryConfigurer.Default.configure(DocumentBuilderFactory.newInstance())); } }
Convert { public static Document toDocument(Source s) { Document d = tryExtractDocFromDOMSource(s); return d != null ? d : toDocument(s, DocumentBuilderFactoryConfigurer.Default.configure(DocumentBuilderFactory.newInstance())); } private  Convert(); }
Convert { public static Document toDocument(Source s) { Document d = tryExtractDocFromDOMSource(s); return d != null ? d : toDocument(s, DocumentBuilderFactoryConfigurer.Default.configure(DocumentBuilderFactory.newInstance())); } private  Convert(); static InputSource toInputSource(Source s); static InputSource toInputSource(Source s, TransformerFactory fac); static Document toDocument(Source s); static Document toDocument(Source s,
                                      DocumentBuilderFactory factory); static Node toNode(Source s); static Node toNode(Source s,
                              DocumentBuilderFactory factory); static NamespaceContext toNamespaceContext(Map<String, String> prefix2URI); }
Convert { public static Document toDocument(Source s) { Document d = tryExtractDocFromDOMSource(s); return d != null ? d : toDocument(s, DocumentBuilderFactoryConfigurer.Default.configure(DocumentBuilderFactory.newInstance())); } private  Convert(); static InputSource toInputSource(Source s); static InputSource toInputSource(Source s, TransformerFactory fac); static Document toDocument(Source s); static Document toDocument(Source s,
                                      DocumentBuilderFactory factory); static Node toNode(Source s); static Node toNode(Source s,
                              DocumentBuilderFactory factory); static NamespaceContext toNamespaceContext(Map<String, String> prefix2URI);  }