From 73624eadd8777db7053b94f19c921f58e7d7ae7a Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Thu, 17 Oct 2024 18:15:41 +0200 Subject: [PATCH] More ",chardata" --- category.go | 2 +- link.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/category.go b/category.go index 4e3f7d6..8ffc7ae 100644 --- a/category.go +++ b/category.go @@ -8,7 +8,7 @@ import ( type Category struct { *CommonAttributes - Content string `xml:",any"` // undefinedContent in RFC4287 + Content string `xml:",chardata"` // undefinedContent in RFC4287 Term string `xml:"term,attr"` Scheme IRI `xml:"scheme,attr,omitempty"` Label string `xml:"label,attr,omitempty"` diff --git a/link.go b/link.go index 20a99fc..5aa70ee 100644 --- a/link.go +++ b/link.go @@ -9,7 +9,7 @@ import ( type Link struct { *CommonAttributes 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"` Rel string `xml:"rel,attr,omitempty"` Type MediaType `xml:"type,attr,omitempty"`