I've got an xml log file formatted with XMLFormatter. I'd like to process this file for report purposes. My problem is, that the log file is not finished by tag, because it is still being written, which makes xml parser bail out. 

The log structure is following:

```

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE log SYSTEM "logger.dtd">
<log>
<record>
(...)
</record>
<record>
(...)

```

Maybe I am missing the point? What's the best strategy for using xml formatted logs?

m.