new DissectableWBDOMFactory(conf);
DissectionWBSAXParser parser =
new DissectionWBSAXParser(wbdomFactory, conf);
// Register the codes used in the input file
ElementNameFactory elementNames = new ElementNameFactory();
elementNames.registerElement(0, "root");
elementNames.registerElement(1, "p");
elementNames.registerElement(2, "div");
elementNames.registerElement(4, "dl");
elementNames.registerElement(5, "dt");
elementNames.registerElement(6, "dd");
elementNames.registerElement(7, "a");
conf.registerAtomicElement( 7);
conf.registerUrlAttribute( "a", "href");
elementNames.registerElement(8, "br");
conf.registerEmptyElement( 8, "br");
elementNames.registerElement(9, "address"); // for testing empty element type
AttributeStartFactory attrStarts = new AttributeStartFactory();
attrStarts.registerAttributeStart(20, "href");
SerialisationURLListener urlListener = new TestURLListener();