|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.maventaglib.util.XmlHelper
public class XmlHelper
| Constructor Summary | |
|---|---|
XmlHelper()
|
|
| Method Summary | |
|---|---|
protected static void |
applyXslt(java.io.File inputFile,
java.lang.String stylesheet,
java.io.File outputFile)
Transform a file using the given xsl stylesheet. |
protected static void |
applyXslt(javax.xml.transform.Source src,
java.lang.String stylesheet,
java.io.File outputFile)
Apply an xsl stylesheet to a java.xml.tranform.Source. |
static javax.xml.parsers.DocumentBuilder |
getDocumentBuilder()
Returns a DocumentBuilder instance. |
protected static org.xml.sax.XMLReader |
getReader()
Returns a XMLReader instance. |
static java.lang.String |
getTextContent(org.w3c.dom.Node baseNode)
Get Node text content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlHelper()
| Method Detail |
|---|
public static javax.xml.parsers.DocumentBuilder getDocumentBuilder()
throws org.apache.maven.plugin.MojoExecutionException
javax.xml.parsers.FactoryConfigurationError - if the parser is not configured
javax.xml.parsers.ParserConfigurationException - if the parser is not configured
org.apache.maven.plugin.MojoExecutionException
protected static org.xml.sax.XMLReader getReader()
throws org.apache.maven.plugin.MojoExecutionException
org.xml.sax.SAXException - for errors on building the sax parser
javax.xml.parsers.ParserConfigurationException - if a SAX parser is not configured
org.apache.maven.plugin.MojoExecutionException
protected static void applyXslt(javax.xml.transform.Source src,
java.lang.String stylesheet,
java.io.File outputFile)
throws org.apache.maven.plugin.MojoExecutionException,
javax.xml.transform.TransformerException
src - Sourcestylesheet - xslt used for transformationoutputFile - output file
javax.xml.transform.TransformerException
java.lang.Exception - xml parsing/transforming exceptions
org.apache.maven.plugin.MojoExecutionException
protected static void applyXslt(java.io.File inputFile,
java.lang.String stylesheet,
java.io.File outputFile)
throws org.apache.maven.plugin.MojoExecutionException
inputFile - input filestylesheet - xslt used for transformationoutputFile - output file
java.lang.Exception - xml parsing/transforming exceptions
org.apache.maven.plugin.MojoExecutionException
public static java.lang.String getTextContent(org.w3c.dom.Node baseNode)
throws org.w3c.dom.DOMException
baseNode - The node.
org.w3c.dom.DOMException - Any DOM exceptions.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||