Scott, The change in the document structure worked like a charm. I have updated the source and all the example code. Currently the default compile is streaming mode enabled. Since the document structure has changed and possible difference with streaming mode defaulting to enabled, I will make document changes priority one. Hopefully by monday. I also added document registration/release events to the DTM interface. The registration event seems to work fine but the release event seems to not happen. I will check into this further. Where should a document that is created by an extension function be released ?? Regards John G