org.apache.cocoon.maven.deployer.utils
Class XMLUtils

java.lang.Object
  extended by org.apache.cocoon.maven.deployer.utils.XMLUtils

public class XMLUtils
extends Object

Version:
$Id: XMLUtils.html 1351235 2012-06-18 08:41:39Z ilgrosso $

Constructor Summary
XMLUtils()
           
 
Method Summary
static Element getChildNode(Element parent, String nodeName)
           
static List getChildNodes(Element parent, String nodeName)
           
static String getValue(Element node)
           
static Document parseXml(File file)
           
static Document parseXml(InputStream source)
           
static void setValue(Element node, String value)
           
static void write(Document node, OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUtils

public XMLUtils()
Method Detail

getChildNode

public static Element getChildNode(Element parent,
                                   String nodeName)

getChildNodes

public static List getChildNodes(Element parent,
                                 String nodeName)

getValue

public static String getValue(Element node)

parseXml

public static Document parseXml(File file)
                         throws IOException,
                                SAXException
Throws:
IOException
SAXException

parseXml

public static Document parseXml(InputStream source)
                         throws IOException,
                                SAXException
Throws:
IOException
SAXException

setValue

public static void setValue(Element node,
                            String value)

write

public static void write(Document node,
                         OutputStream out)
                  throws TransformerFactoryConfigurationError,
                         TransformerException
Throws:
TransformerFactoryConfigurationError
TransformerException


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.