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