More ",chardata"
This commit is contained in:
parent
28f5616f76
commit
86785be588
2
date.go
2
date.go
@ -7,7 +7,7 @@ import (
|
||||
|
||||
type Date struct {
|
||||
*CommonAttributes
|
||||
DateTime string
|
||||
DateTime string `xml:",chardata"`
|
||||
}
|
||||
|
||||
// DateTime formats a time.Time to string formated as defined by RFC3339. It
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
|
||||
type InlineOtherContent struct {
|
||||
*CommonAttributes
|
||||
AnyElement any `xml:"anyelement,omitempty"`
|
||||
AnyElement any `xml:",chardata"`
|
||||
Type MediaType `xml:"type,attr,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
type InlineTextContent struct {
|
||||
*CommonAttributes
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user