Make uri in id and text in plain text xml type ",chardata"

This commit is contained in:
Jason Streifling 2024-10-17 17:14:10 +02:00
parent 657624cbd6
commit 28f5616f76
2 changed files with 2 additions and 2 deletions

2
id.go
View File

@ -7,7 +7,7 @@ import (
type ID struct { type ID struct {
*CommonAttributes *CommonAttributes
URI IRI `xml:"uri"` URI IRI `xml:",chardata"`
} }
// NewID creates a new ID. It returns a *ID. // NewID creates a new ID. It returns a *ID.

View File

@ -5,7 +5,7 @@ import "errors"
type PlainText struct { type PlainText 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
Text string `xml:"text"` Text string `xml:",chardata"`
} }
// isText checks whether the PlainText is a Text. It returns a bool. // isText checks whether the PlainText is a Text. It returns a bool.