Is it possible to combine all the xml documents in an EPUB in a single xml file?
You can do it relatively fast by using XSLT 2.0 :
See document() and collection() functions for reading the files.
Use the identify template for copying the content of each documents.
One of the advantage of using XSLT is that you are sure to obtain a well-formed XML.
I will try to post a sample soon.