|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.triangularpixels.rebirth.resources.XmlUtil
public class XmlUtil
Handy-dandy utility methods for xml parsing
| Constructor Summary | |
|---|---|
XmlUtil()
|
|
| Method Summary | |
|---|---|
static Element |
getChild(Element parent,
String name)
Gets the child with the given node name, or null if it doesn't exist |
static Element[] |
getChildElements(Element parent)
Gets all the child elements of a given parent |
static Element[] |
getChildElements(Element parent,
String nodeName)
|
static Element |
getSingleChild(Element parent)
Gets a single child element from a parent Returns null if there's less than or more than one child element |
static Element |
parseXml(String xml)
|
static String[] |
splitArrayString(String input)
Splits a string representing an array of values into sub string. |
| 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 Element parseXml(String xml)
public static Element getChild(Element parent,
String name)
public static Element getSingleChild(Element parent)
public static Element[] getChildElements(Element parent)
public static Element[] getChildElements(Element parent,
String nodeName)
public static String[] splitArrayString(String input)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||