|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--pt.jcodeutil.core.xml.XMLUtils
Title: XMLUtils
Description: Provide some utilities for XML Manipulation.
| Constructor Summary | |
XMLUtils()
|
|
| Method Summary | |
static java.lang.String |
getElementText(org.w3c.dom.Element element)
Return the text inside an Element. |
static org.w3c.dom.Document |
newDocument()
Create an empty Document. |
static org.w3c.dom.Document |
parse(java.io.File file)
Parse a File into a XML Tree Document. |
static org.w3c.dom.Document |
parse(org.xml.sax.InputSource in)
Parse an InputSource into a XML Tree Document. |
static org.w3c.dom.Document |
parse(java.io.InputStream in)
Parse an InputStream into a XML Tree Document. |
static org.w3c.dom.Document |
parse(java.io.Reader in)
Parse a Reader into a XML Tree Document. |
static org.w3c.dom.Document |
parse(java.lang.String xml)
Parse the contents of a String containing XML data into a XML Tree Document. |
static org.w3c.dom.Document |
parse(java.net.URL url)
Parse the contents of a URL into a XML Tree Document. |
static java.lang.String |
printDocument(org.w3c.dom.Document d)
Converts the DOM Tree into a pretty String. |
static org.w3c.dom.Document |
transform(org.w3c.dom.Document xml,
org.w3c.dom.Document xsl)
Execute a XML Transformation and return the result as a XML Tree Document. |
static void |
transform(java.io.InputStream xml,
java.io.InputStream xsl,
java.io.OutputStream result)
Execute a XSL transformation. |
static void |
transform(java.io.Reader xml,
java.io.Reader xsl,
java.io.Writer result)
Execute a XSL transformation. |
static void |
transform(java.io.Reader xml,
java.io.Reader xsl,
java.io.Writer result,
java.util.Map parameters)
This method transforms a XML Document using a XSL. |
static java.lang.String |
transform(java.lang.String xml,
java.lang.String xsl)
Execute a XSL transformation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLUtils()
| Method Detail |
public static java.lang.String printDocument(org.w3c.dom.Document d)
throws java.io.IOException
d - document to be convertedjava.io.IOException -
public static final org.w3c.dom.Document parse(org.xml.sax.InputSource in)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
in - - the Source to be Parsed.
public static final org.w3c.dom.Document parse(java.io.InputStream in)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
in - - the InputStream to be parsed.
public static final org.w3c.dom.Document parse(java.io.Reader in)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
in - - the Reader to be parsed.
public static final org.w3c.dom.Document parse(java.io.File file)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
file - - File to be parsed.
public static final org.w3c.dom.Document parse(java.net.URL url)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
url - - URL to be parsed.
public static final org.w3c.dom.Document parse(java.lang.String xml)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
xml - - String to be parsed.
public static final org.w3c.dom.Document newDocument()
throws javax.xml.parsers.ParserConfigurationException
public static final java.lang.String getElementText(org.w3c.dom.Element element)
element - - the element to be scanned to retrieve the text.
public static final void transform(java.io.Reader xml,
java.io.Reader xsl,
java.io.Writer result)
throws java.io.IOException,
pt.jcodeutil.core.xml.TransformerException
xml - - xml tree to be transformed.xsl - - xsl to be applied in the transformation.result - - the result of the transformation.
public static final void transform(java.io.Reader xml,
java.io.Reader xsl,
java.io.Writer result,
java.util.Map parameters)
throws java.io.IOException,
pt.jcodeutil.core.xml.TransformerException
xml - the XML tree to be transformed.xsl - the XSL to be applied in the transformation.result - the result of the transformationparameters - a map of parameters for the transformerjava.io.IOException - pt.jcodeutil.core.xml.TransformerException -
public static final void transform(java.io.InputStream xml,
java.io.InputStream xsl,
java.io.OutputStream result)
throws java.io.IOException,
pt.jcodeutil.core.xml.TransformerException
xml - - xml tree to be transformed.xsl - - xsl to be applied in the transformation.result - - the result of the transformation.
public static final java.lang.String transform(java.lang.String xml,
java.lang.String xsl)
throws java.io.IOException,
pt.jcodeutil.core.xml.TransformerException
xml - - xml tree to be transformed (in String format).xsl - - xsl to be applied in the transformation (in String format).
public static final org.w3c.dom.Document transform(org.w3c.dom.Document xml,
org.w3c.dom.Document xsl)
throws java.io.IOException,
pt.jcodeutil.core.xml.TransformerException,
javax.xml.parsers.ParserConfigurationException
xml - document to be transformed.xsl - xsl to be applied in the transformation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||