String url = "http://htmlparser.sourceforge.net/test/overflowpage.html";
int i;
Node[] nodes;
parser = new Parser(url);
PrototypicalNodeFactory factory = new PrototypicalNodeFactory ();
// we want to expose the repetitive tags
factory.unregisterTag (new Html ());
factory.unregisterTag (new HeadTag ());
factory.unregisterTag (new BodyTag ());
factory.unregisterTag (new ParagraphTag ());
parser.setNodeFactory (factory);
i = 0;
nodes = new Node[50];
for (NodeIterator e = parser.elements(); e.hasMoreNodes();)
nodes[i++] = e.nextNode();