classafAtom::Text
sys::Obj afAtom::Text
Contains human-readable text.
@see The Text Construct
- content
Str content
(Required) The human-readable text. This should not be XML escaped.
- make
new make(Str content, TextType type := TextType.text)
Creates a
Text
with the required fields.Note that
content
should not be XML escaped in any way as this will be done automatically, dependent on theTextType
value.- toXml
virtual XElem toXml(Str elementName)
Creates a Text element with the given element name.
- type
TextType type
(Required) Determines how the
content
is encoded / escaped.- xmlBase
Uri? xmlBase
(Optional) Used to control how relative URIs are resolved.
- xmlLang
Str? xmlLang
(Optional) Used to identify the language of any human readable text.