Make uri in id and text in plain text xml type ",chardata"
This commit is contained in:
parent
657624cbd6
commit
28f5616f76
2
id.go
2
id.go
@ -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.
|
||||||
|
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user