Added support for streaming XML to a file like object, for use with
large documents.