I am exporting data from a couple of tables i DataFlex to XML, some of the tables contains over two milion records.
When I export from these tables my application hangs, I suspect that the memory on the computer is not enough.

Is the XML stored in memory until i save the XML document?

Any ideas on this, should i export less data from these tables to several files instead?