The following jython script fails on trunk with a OutOfMemoryError exception, but works with jython 2.2.1.  If trunk is run with -Xmx128M then it works.. but this seems excessive for the given script.

import xml.dom.pulldom

xmlf = file("tmp.xml", "w")
xmlf.write("<foo>\n")
for i in range(1, 8000):
   xmlf.write("  <data>%s</data>\n" % i)
xmlf.write("</foo>\n")
xmlf.close()

xmldoc = xml.dom.pulldom.parse("tmp.xml")
event, dbnode = xmldoc.getEvent()