|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxml.XMLTransformer
public class XMLTransformer
Performs XML transformation using an XSLT script supplied at construction time.
Nested Class Summary | |
---|---|
static class |
XMLTransformer.XMLTransformerException
Exception class for XSLT transformations. |
Constructor Summary | |
---|---|
XMLTransformer(java.lang.String xslturi)
Constructs a new transformer using the XSLT script at the given URI. |
Method Summary | |
---|---|
org.w3c.dom.Element |
doTransform(org.w3c.dom.Element srcel)
Applies this transform to the given input DOM element, returning the result also as a DOM element. |
org.w3c.dom.Element |
doTransform(javax.xml.transform.Source src)
Applies this transform to the given source, returning the result as a DOM element. |
void |
doTransform(javax.xml.transform.Source src,
javax.xml.transform.Result rslt)
Applies this transform to the given source to produce the given result. |
java.lang.String |
doTransform(java.lang.String srcstr)
Applies this transform to the given input XML text, returning the result as a string. |
void |
doTransform(java.lang.String inf,
java.lang.String outf)
Applies this transform to the given input XML file, producing the result in the given output file. |
java.lang.String |
elText(org.w3c.dom.Element el)
Returns the text of the given DOM element. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLTransformer(java.lang.String xslturi) throws XMLTransformer.XMLTransformerException
XMLTransformer.XMLTransformerException
Method Detail |
---|
public java.lang.String elText(org.w3c.dom.Element el) throws XMLTransformer.XMLTransformerException
XMLTransformer.XMLTransformerException
public void doTransform(java.lang.String inf, java.lang.String outf) throws XMLTransformer.XMLTransformerException
XMLTransformer.XMLTransformerException
public java.lang.String doTransform(java.lang.String srcstr) throws XMLTransformer.XMLTransformerException
XMLTransformer.XMLTransformerException
public org.w3c.dom.Element doTransform(org.w3c.dom.Element srcel) throws XMLTransformer.XMLTransformerException
XMLTransformer.XMLTransformerException
public org.w3c.dom.Element doTransform(javax.xml.transform.Source src) throws XMLTransformer.XMLTransformerException
XMLTransformer.XMLTransformerException
public void doTransform(javax.xml.transform.Source src, javax.xml.transform.Result rslt) throws XMLTransformer.XMLTransformerException
XMLTransformer.XMLTransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |