More ",chardata"

This commit is contained in:
Jason Streifling 2024-10-17 17:19:43 +02:00
parent 28f5616f76
commit 86785be588
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import (
type Date struct { type Date struct {
*CommonAttributes *CommonAttributes
DateTime string DateTime string `xml:",chardata"`
} }
// DateTime formats a time.Time to string formated as defined by RFC3339. It // DateTime formats a time.Time to string formated as defined by RFC3339. It

View File

@ -8,7 +8,7 @@ import (
type InlineOtherContent struct { type InlineOtherContent struct {
*CommonAttributes *CommonAttributes
AnyElement any `xml:"anyelement,omitempty"` AnyElement any `xml:",chardata"`
Type MediaType `xml:"type,attr,omitempty"` Type MediaType `xml:"type,attr,omitempty"`
} }

View File

@ -9,7 +9,7 @@ import (
type InlineTextContent struct { type InlineTextContent struct {
*CommonAttributes *CommonAttributes
Type string `xml:"type,attr,omitempty"` // Must be text or html Type string `xml:"type,attr,omitempty"` // Must be text or html
Texts []string `xml:"texts,omitempty"` Texts []string `xml:",chardata"`
} }
// newInlineTextContent creates a new InlineTextContent. It returns a // newInlineTextContent creates a new InlineTextContent. It returns a