[jdom-interest] Why Class.forName("javax.xml.transform.Transformer")?
Elliotte Rusty Harold
elharo at metalab.unc.edu
Sun Apr 7 15:59:20 PDT 2002
In JAXPDOMAdapter can somebody explain to me why the following code is
present in the getDocument() method:
// Try using JAXP...
// Note we need DOM Level 2 and thus JAXP 1.1.
Class.forName("javax.xml.transform.Transformer");
Is this just a test for JAXP 1.1? Or is something else going on? We
don't appear to actually use the Transformer class anywhere.
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| The XML Bible, 2nd Edition (IDG Books, 2001) |
| http://www.cafeconleche.org/books/bible2/ |
| http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+
More information about the jdom-interest
mailing list