diff -r 9fe022261dcc -r fbda8e925fdf roster.go --- a/roster.go Fri Dec 30 21:49:00 2011 -0700 +++ b/roster.go Sat Dec 31 10:11:01 2011 -0700 @@ -36,6 +36,10 @@ Group []string } +func (riq *RosterIq) MarshalXML() ([]byte, os.Error) { + return marshalXML(riq) +} + func (riq *RosterIq) InnerMarshal(w io.Writer) os.Error { return xml.Marshal(w, riq.Query) }