Added text stream.
Added xml stream.