|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wiki.util.XmlUtil
public final class XmlUtil
Utility class to parse XML files.
This uses JDOM2 as its backing implementation.
Method Summary | |
---|---|
static List<org.jdom2.Element> |
parse(InputStream xmlStream,
String requestedNodes)
Parses the given stream and returns the requested nodes. |
static List<org.jdom2.Element> |
parse(String xml,
String requestedNodes)
Parses the given XML file and returns the requested nodes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static List<org.jdom2.Element> parse(String xml, String requestedNodes)
xml
- file to parse; matches all resources from classpath, filters repeated items.requestedNodes
- requestd nodes on the xml file
public static List<org.jdom2.Element> parse(InputStream xmlStream, String requestedNodes)
xmlStream
- stream to parse.requestedNodes
- requestd nodes on the xml stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |