Added stream-out provdision with XML style output Note: UNTESTED!