|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.utils.XML
public class XML
This utility provides useful XML helper methods.
| Constructor Summary | |
|---|---|
XML()
|
|
| Method Summary | |
|---|---|
static Document |
cloneDocument(Document olddoc)
This is only being kept around for backward compatibility. |
static void |
dom2sax(Node dom,
ContentHandler sax)
Outputs a dom document into a sax stream. |
static String |
getChildElementText(Element e,
String childElementName)
Gets the text value of a child Element. |
static String |
getElementText(Element e)
Gets the text value of an Element. |
static String |
serializeNode(Node node)
Gets the contents of an XML Document or Element as a nicely formatted string. |
static String |
serializeNode(Node node,
OutputFormat format)
Gets the contents of an XML Document or Element as a formatted string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XML()
| Method Detail |
|---|
public static String getElementText(Element e)
e - the Element with a text value
public static String getChildElementText(Element e,
String childElementName)
e - the Element to search underchildElementName - the name of the child Element
public static String serializeNode(Node node)
node - the Node to print; must be of type Document or Element
public static String serializeNode(Node node,
OutputFormat format)
node - the Node to print; must be of type Document or Elementformat - controls the formatting of the string
public static Document cloneDocument(Document olddoc)
olddoc - the original document
public static void dom2sax(Node dom,
ContentHandler sax)
throws TransformerConfigurationException,
TransformerException
dom - a dom Node valuesax - a sax ContentHandler value
TransformerConfigurationException
TransformerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||