|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.component.framework.util.XMLUtil
public final class XMLUtil
Contains utilities methods for XML operations.
| Method Summary | |
|---|---|
static org.w3c.dom.Node |
findVariable(org.w3c.dom.NodeList list,
java.lang.String variable)
Recursively traverse node and find the text node with the value of the specified variable. |
static java.lang.String |
getTextContent(org.w3c.dom.Node node)
Return the text element of a node, even if it is contained in a CDATA section |
static org.w3c.dom.Document |
loadDocument(java.io.InputStream inputStream)
Load a document from an input stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String getTextContent(org.w3c.dom.Node node)
node -
public static org.w3c.dom.Document loadDocument(java.io.InputStream inputStream)
throws java.io.IOException,
org.xml.sax.SAXException
inputStream -
java.io.IOException
org.xml.sax.SAXException
public static org.w3c.dom.Node findVariable(org.w3c.dom.NodeList list,
java.lang.String variable)
list - The node list to traverse.variable - The value of the text node to find.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||