mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-27 21:02:02 -08:00
Merge pull request #2 from ianlamb/master
fix: add xml namespace prefix to message lang attrs
This commit is contained in:
commit
19e0222910
@ -8,9 +8,10 @@ import (
|
|||||||
// ============================================================================
|
// ============================================================================
|
||||||
// Message Packet
|
// Message Packet
|
||||||
|
|
||||||
|
// LocalizedString is a string node with a language attribute.
|
||||||
type LocalizedString struct {
|
type LocalizedString struct {
|
||||||
Content string `xml:",chardata"`
|
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)
|
// Message implements RFC 6120 - A.5 Client Namespace (a part)
|
||||||
|
@ -10,7 +10,7 @@ type Attrs struct {
|
|||||||
Id string `xml:"id,attr,omitempty"`
|
Id string `xml:"id,attr,omitempty"`
|
||||||
From string `xml:"from,attr,omitempty"`
|
From string `xml:"from,attr,omitempty"`
|
||||||
To string `xml:"to,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 {
|
type packetFormatter interface {
|
||||||
|
Loading…
Reference in New Issue
Block a user