roster.go
changeset 75 03a923eb5c01
parent 74 e619e18dcec3
--- a/roster.go	Thu Jan 19 12:25:36 2012 -0600
+++ b/roster.go	Thu Jan 19 13:41:42 2012 -0600
@@ -18,16 +18,16 @@
 // Roster query/result
 type RosterQuery struct {
 	XMLName xml.Name `xml:"jabber:iq:roster query"`
-	Item    []RosterItem
+	Item    []RosterItem `xml:"item"`
 }
 
 // See RFC 3921, Section 7.1.
 type RosterItem struct {
 	XMLName      xml.Name `xml:"item"`
-	Jid          string   `xml:"attr"`
-	Subscription string   `xml:"attr"`
-	Name         string   `xml:"attr"`
-	Group        []string
+	Jid          string   `xml:"jid,attr"`
+	Subscription string   `xml:"subscription,attr"`
+	Name         string   `xml:"name,attr"`
+	Group        []string `xml:"group"`
 }
 
 type rosterClient struct {