Hi, On 8/29/07, Amir Mistric <[EMAIL PROTECTED]> wrote: > I was wondering if anyone has an idea on how to measure the progress of > the file being imported via Session.importXML() method? I have some very > large XML files and I would like to at least have a log message outputting > progress (e.g. "imported 100 nodes........200......300....) > > Is there a way to do this?
The easiest and most generic way would probably be to decorate the ContentHandler instance returned by getImportContentHandler() with a decorator that for example counts the number of startElement() or endElement() calls. BR, Jukka Zitting
