classafAtom::Text

sys::Obj
  afAtom::Text

Contains human-readable text.

@see The Text Construct

content

Source

Str content

(Required) The human-readable text. This should not be XML escaped.

make

Source

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 the TextType value.

toXml

Source

virtual XElem toXml(Str elementName)

Creates a Text element with the given element name.

type

Source

TextType type

(Required) Determines how the content is encoded / escaped.

xmlBase

Source

Uri? xmlBase

(Optional) Used to control how relative URIs are resolved.

xmlLang

Source

Str? xmlLang

(Optional) Used to identify the language of any human readable text.