diff -r 4a06f7ccfa84 -r 33e7f25f1fd2 structs.go --- a/structs.go Sat Dec 31 11:45:44 2011 -0700 +++ b/structs.go Sat Dec 31 12:11:02 2011 -0700 @@ -76,6 +76,8 @@ Any *Generic } +// BUG(cjyar) Change XTo() to GetTo(), etc. + // One of the three core XMPP stanza types: iq, message, presence. See // RFC3920, section 9. type Stanza interface { @@ -242,6 +244,9 @@ return buf.Bytes(), nil } +// BUG(cjyar) We can probably eliminate this if we use an +// appropriately-tagged XMLName field. + func (e *errText) MarshalXML() ([]byte, os.Error) { buf := bytes.NewBuffer(nil) buf.WriteString("