ok so i parsed a simple html file into an arrayList of nodes. the node class is:
String s; //name of node
ArrayList<node> children;
public node(String) {
****this.s = s;
****children = null;
}
an example arrayList looks like:
[<html>, <body>, "oh", <em>, "hi", </em>, "there", </body>, </html>]...