Streaming codec to decode and encode XML
