Modifier and Type | Method and Description |
---|---|
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.
|
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 filepublic static List<org.jdom2.Element> parse(InputStream xmlStream, String requestedNodes)
xmlStream
- stream to parse.requestedNodes
- requestd nodes on the xml stream.Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.