public final class XMLParser extends Object
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
initial version Jul 23, 2015
| Modifier and Type | Method and Description |
|---|---|
static List<Node> |
getNodes(NodeList nodeList,
String tag) |
static List<Node> |
getNodesSorted(NodeList nodeList,
String tag,
String... sortAttributes)
Returns nodes sorted by attributes and/or value.
|
public static List<Node> getNodes(NodeList nodeList, String tag)
nodeList - the list of nodes to processtag - the tag to look for, e.g., LINKpublic static List<Node> getNodesSorted(NodeList nodeList, String tag, String... sortAttributes)
null.nodeList - the list of nodes to processtag - the tag to look for, e.g., LINKsortAttributes - list of attributes, which may contain null to use the node valueCopyright © 2014–2018 Delft University of Technology. All rights reserved.