"You can use the underlying parser used by
XMLEventReader through ConstructingParser and process your employee nodes below the top level with a callback."— scala - How to get a streaming Iterator[Node] from a large XML document? - Stack Overflow