diff --git a/stanza/message.go b/stanza/message.go index 954d515..a6364b0 100644 --- a/stanza/message.go +++ b/stanza/message.go @@ -8,9 +8,10 @@ import ( // ============================================================================ // Message Packet +// LocalizedString is a string node with a language attribute. type LocalizedString struct { Content string `xml:",chardata"` - Lang string `xml:"lang,attr,omitempty"` + Lang string `xml:"http://www.w3.org/XML/1998/namespace lang,attr,omitempty"` } // Message implements RFC 6120 - A.5 Client Namespace (a part) diff --git a/stanza/packet.go b/stanza/packet.go index 567796d..00f76ba 100644 --- a/stanza/packet.go +++ b/stanza/packet.go @@ -10,7 +10,7 @@ type Attrs struct { Id string `xml:"id,attr,omitempty"` From string `xml:"from,attr,omitempty"` To string `xml:"to,attr,omitempty"` - Lang string `xml:"lang,attr,omitempty"` + Lang string `xml:"http://www.w3.org/XML/1998/namespace lang,attr,omitempty"` } type packetFormatter interface {