xml stream decoder