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
Textwith the required fields.Note that
contentshould not be XML escaped in any way as this will be done automatically, dependent on theTextTypevalue.- toXml
virtual XElem toXml(Str elementName)Creates a Text element with the given element name.
- type
TextType type(Required) Determines how the
contentis 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.