|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.unidata.xml.XmlUtil
edu.wisc.ssec.mcidasv.util.XmlUtil
public abstract class XmlUtil
A collection of utilities for XML..
Field Summary |
---|
Fields inherited from class ucar.unidata.xml.XmlUtil |
---|
NULL_STRING, TAG_WILDCARD, XML_HEADER |
Constructor Summary | |
---|---|
XmlUtil()
|
Method Summary | |
---|---|
static List<String> |
findDescendantNamesWithSeparator(Node parent,
String tag,
String separator)
Find all of the descendant elements of the given parent Node whose tag name.equals the given tag. |
private static void |
findDescendantNamesWithSeparator(Node parent,
String tag,
String descendants,
String separator,
List<String> found)
Find all of the descendant elements of the given parent Node whose tag name equals the given tag. |
static Element |
getElementAtNamedPath(Node parent,
List<String> nameList)
Find the element described by nameList (path) |
static Element |
getMakeElementAtNamedPath(Node parent,
List<String> nameList,
String tagName,
boolean makeNew)
Find the element described by nameList (path) |
static Element |
makeElementAtNamedPath(Node parent,
List<String> nameList,
String tagname)
Make the element described by nameList (path) |
static void |
printNode(Node parent)
Print all the attributes of the 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 void printNode(Node parent)
parent
- public static List<String> findDescendantNamesWithSeparator(Node parent, String tag, String separator)
parent
- The root of the xml dom tree to search.tag
- The tag name to match.
private static void findDescendantNamesWithSeparator(Node parent, String tag, String descendants, String separator, List<String> found)
parent
- The root of the xml dom tree to search.tag
- The tag name to match.found
- The list of descendants that match the given tag.public static Element getElementAtNamedPath(Node parent, List<String> nameList)
parent
- nameList
-
public static Element makeElementAtNamedPath(Node parent, List<String> nameList, String tagname)
parent
- nameList
-
public static Element getMakeElementAtNamedPath(Node parent, List<String> nameList, String tagName, boolean makeNew)
parent
- nameList
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |