import java.util.ArrayList;
class Main {
public static ArrayList getNodesValue(String xml, String nodeName) {
String[] nodesValue = null;
ArrayList v = new ArrayList();
while (xml.indexOf("<" + nodeName + ">") != -1) {
int start = xml.indexOf("<" + nodeName + ">")
+ ("<" + nodeName + ">").length();
int stop = xml.indexOf("" + nodeName + ">");
String tmp = xml.substring(start, stop);
v.add(tmp);
xml = xml.substring((stop + ("" + nodeName + ">").length()));
}
return v;
}
}