diff --git a/stanza/message.go b/stanza/message.go index cb5410b..2a74a14 100644 --- a/stanza/message.go +++ b/stanza/message.go @@ -12,7 +12,7 @@ import ( type Subject struct { XMLName xml.Name `xml:"subject"` - Content string `xml:",chardata,omitempty"` + Content string `xml:",chardata"` Lang string `xml:"lang,attr,omitempty"` } @@ -20,7 +20,7 @@ type Subject struct { type Body struct { XMLName xml.Name `xml:"body"` - Content string `xml:",chardata,omitempty"` + Content string `xml:",chardata"` Lang string `xml:"lang,attr,omitempty"` }