|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--irssibot.util.XMLUtil
Collection of util functions for manipulating and parsing XML documents.
| Constructor Summary | |
XMLUtil()
|
|
| Method Summary | |
static java.util.Vector |
getListElements(org.w3c.dom.Node listNode,
java.lang.String listElementName)
Used to parse out elements of a list such as this: |
static java.lang.String |
getNodeAttribute(org.w3c.dom.Node node,
java.lang.String name)
Returns the value of a named node's attribute. |
static int |
getNodeIntAttribute(org.w3c.dom.Node node,
java.lang.String name)
Returns the value of a named node's attribute as an integer. |
static java.lang.String |
getTextChildValue(org.w3c.dom.Node node)
Returns a text node contents below given 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.Vector getListElements(org.w3c.dom.Node listNode,
java.lang.String listElementName)
value1 value2 value3
For this example, called with Node pointing to
listNode - pointer to list's "root" nodelistElementName - name of list element
public static java.lang.String getTextChildValue(org.w3c.dom.Node node)
text to be returned
node - node whose text child to return
public static java.lang.String getNodeAttribute(org.w3c.dom.Node node,
java.lang.String name)
node - node whose attribute to returnname - name of attribute to return
public static int getNodeIntAttribute(org.w3c.dom.Node node,
java.lang.String name)
node - node whose attribute to returnname - name of attribute to return
MissingValueException - if the value is missing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||