Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


com.bea.wcp.diameter.util
Class XmlUtils

java.lang.Object
  extended by com.bea.wcp.diameter.util.XmlUtils


public class XmlUtils
extends Object

Miscellaneous utility methods for handling XML documents.


Constructor Summary
XmlUtils()
           

 

Method Summary
static Element createTextElement(Document doc, String name, String value)
           
static Element getChild(Element e, String tagName)
           
static List getChildren(Element e, String tagName)
           
static Element getElement(Element e, String path)
           
static List getElements(Element e, String path)
           
static String getTextValue(Element e)
           
static Document newDocument()
           
static DocumentBuilder newDocumentBuilder()
           
static Transformer newTransformer()
           
static Document parse(File file)
           
static Document parse(InputStream is)
           
static Document parse(URL url)
           
static void removeChildren(Element e)
           
static void setTextValue(Element e, String s)
           
static byte[] toByteArray(Node node)
           
static String toString(Node node)
           

 

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

getElement

public static Element getElement(Element e,
                                 String path)

getElements

public static List getElements(Element e,
                               String path)

getChild

public static Element getChild(Element e,
                               String tagName)

getChildren

public static List getChildren(Element e,
                               String tagName)

getTextValue

public static String getTextValue(Element e)

setTextValue

public static void setTextValue(Element e,
                                String s)

removeChildren

public static void removeChildren(Element e)

createTextElement

public static Element createTextElement(Document doc,
                                        String name,
                                        String value)

parse

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

parse

public static Document parse(URL url)
                      throws IOException,
                             SAXException
Throws:
IOException
SAXException

parse

public static Document parse(InputStream is)
                      throws SAXException,
                             IOException
Throws:
SAXException
IOException

newDocumentBuilder

public static DocumentBuilder newDocumentBuilder()

newDocument

public static Document newDocument()

toByteArray

public static byte[] toByteArray(Node node)
                          throws TransformerException
Throws:
TransformerException

toString

public static String toString(Node node)
                       throws TransformerException
Throws:
TransformerException

newTransformer

public static Transformer newTransformer()
                                  throws TransformerException
Throws:
TransformerException

Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


Copyright © 2012 Oracle Corporation. All Rights Reserved.