soulcutter / saxerator

A SAX-based XML parser for parsing large files into manageable chunks
MIT License
128 stars 19 forks source link

Example of using saxerator writing a file. #21

Closed mgurley closed 8 years ago

mgurley commented 9 years ago

The following Stackoverflow question indicates that the saxerator gem can be used to generate a XML file as a stream: https://stackoverflow.com/questions/21748227/how-to-stream-large-xml-in-rails-3-2

Is there an example of how to achieve this?

I would like to stream a large XML file as it is dynamically built.

soulcutter commented 9 years ago

I'm sorry, I'd missed this issue getting opened. Saxerator can read any streaming IO object, but I need to think a little about how to achieve what you're asking

soulcutter commented 8 years ago

I'm going to close this. I still don't know quite what this feature would look like, but unless there's a specific proposal to discuss I don't think this will go anywhere.

I lean towards this being out-of-scope for this gem, which is primarily an XML stream consumer.