parser.setNodeFactory (new PrototypicalNodeFactory (new BodyTag ()));
iterator = parser.elements ();
node = null;
while (iterator.hasMoreNodes ())
{
node = iterator.nextNode ();
if (node instanceof BodyTag)
{
assertNotNull ("no style attribute", ((BodyTag)node).getAttribute ("STYLE"));
assertNotNull ("no title attribute", ((BodyTag)node).getAttribute ("TITLE"));
}