XText
@Js
class XText : XNode
XText represents the character data inside an element.
Construct a text node with the specified value
Character data for this text node
If true then this text node was read/will be written as a CDATA section
Return the string value (truncated if it is long)
Make a copy of this text node
Return the XNodeType.text
Write this node to the output stream
Bool : cdata
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.
This copy()
Make a copy of this text node.
new make(Str val)
Construct a text node with the specified value.
virtual XNodeType nodeType()
Return the XNodeType.text.
virtual Str toStr()
Return the string value (truncated if it is long).
Str : val
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.
virtual Void write(OutStream out)
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.