src/server/pfs/s3/util.go
func writeXML(w http.ResponseWriter, r *http.Request, code int, v interface{}) {
	w.Header().Set("Content-Type", "application/xml")
	w.WriteHeader(code)
	encoder := xml.NewEncoder(w)
	if err := encoder.Encode(v); err != nil {
		// just log a message since a response has already been partially
		// written
		requestLogger(r).Errorf("could not encode xml response: %v", err)
	}
}
func writeXML(w http.ResponseWriter, r *http.Request, code int, v interface{}) {
	w.Header().Set("Content-Type", "application/xml")
	w.WriteHeader(code)
	encoder := xml.NewEncoder(w)
	if err := encoder.Encode(v); err != nil {
		// just log a message since a response has already been partially
		// written
		requestLogger(r).Errorf("could not encode xml response: %v", err)
	}
}
// writeXML serializes a struct to a response as XML