Example #1
0
func xmlTestHandler(w traffic.ResponseWriter, r *traffic.Request) {
	type Person struct {
		FirstName string `xml:"name>first"`
		LastName  string `xml:"name>last"`
	}

	w.WriteXML(&Person{
		FirstName: "foo",
		LastName:  "bar",
	})
}