class xml::XText

sys::Obj
  xml::XNode
    xml::XText

@Js

Source

XText represents the character data inside an element.

cdata

Bool cdata

Source

If true then this text node was read/will be written as a CDATA section. If set to true, then val must not contain the "]]>" substring.

copy

This copy()

Source

Make a copy of this text node.

make

new make(Str val)

Source

Construct a text node with the specified value.

nodeType

virtual override XNodeType nodeType()

Source

Return the XNodeType.text.

toStr

virtual override Str toStr()

Source

Return the string value (truncated if it is long).

val

Str val

Source

Character data for this text node. If this text is to be written as a CDATA section, then this value must not contain the "]]>" substring.

write

virtual override Void write(OutStream out)

Source

Write this node to the output stream. If this node is set to be written as a CDATA section and the val string contains the "]]>" substring then throw IOErr.