|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.caucho.xml.XmlUtil
XML utilities for manipulating names and the DOM.
Constructor Summary | |
XmlUtil()
|
Method Summary | |
static Node |
getNext(Node node)
Get the next node in a depth first preorder traversal. |
static java.lang.String |
getPIAttribute(java.lang.String pi,
java.lang.String key)
Extracts an attribute from a processing instruction. |
static Node |
getPrevious(Node node)
Get the previous node in a DFS preorder traversal |
static java.util.HashMap |
splitNameList(java.lang.String name)
Treats the string as an attribute list, splitting it into a HashMap. |
static void |
textValue(CharBuffer cb,
Node node)
Extracts the text value from the node. |
static java.lang.String |
textValue(Node node)
Extracts the text value from the node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XmlUtil()
Method Detail |
public static java.util.HashMap splitNameList(java.lang.String name) throws java.io.IOException
name
- a string to be interpreted as an attribute listpublic static java.lang.String getPIAttribute(java.lang.String pi, java.lang.String key)
<?xml-stylesheet href="default.xsl"?>
In the above example,
would return "default.xsl".getPIAttribute(node.getNodeValue(), "href")
pi
- the value of the processing instructionkey
- the attribute keypublic static Node getNext(Node node)
node
- the current nodepublic static Node getPrevious(Node node)
node
- the current nodepublic static java.lang.String textValue(Node node)
public static void textValue(CharBuffer cb, Node node)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |