Test and grammar for as=xml