Consistently emit XML prologue and AWS namespace