More ",chardata"
This commit is contained in:
parent
17aa4b1a15
commit
73624eadd8
@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
type Category struct {
|
type Category struct {
|
||||||
*CommonAttributes
|
*CommonAttributes
|
||||||
Content string `xml:",any"` // undefinedContent in RFC4287
|
Content string `xml:",chardata"` // undefinedContent in RFC4287
|
||||||
Term string `xml:"term,attr"`
|
Term string `xml:"term,attr"`
|
||||||
Scheme IRI `xml:"scheme,attr,omitempty"`
|
Scheme IRI `xml:"scheme,attr,omitempty"`
|
||||||
Label string `xml:"label,attr,omitempty"`
|
Label string `xml:"label,attr,omitempty"`
|
||||||
|
2
link.go
2
link.go
@ -9,7 +9,7 @@ import (
|
|||||||
type Link struct {
|
type Link struct {
|
||||||
*CommonAttributes
|
*CommonAttributes
|
||||||
Title string `xml:"title,attr,omitempty"`
|
Title string `xml:"title,attr,omitempty"`
|
||||||
Content string `xml:",any"` // undefinedContent in RFC4287
|
Content string `xml:",chardata"` // undefinedContent in RFC4287
|
||||||
Href IRI `xml:"href,attr"`
|
Href IRI `xml:"href,attr"`
|
||||||
Rel string `xml:"rel,attr,omitempty"`
|
Rel string `xml:"rel,attr,omitempty"`
|
||||||
Type MediaType `xml:"type,attr,omitempty"`
|
Type MediaType `xml:"type,attr,omitempty"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user