It is unclear what causes (perhaps it's a size issue), but for some file formats of interest, the root element is duplicated when run via the CLI. For example, we might get something like this:
<root> |
<root> |
...
|
</root> |
</root> |