class xml::XText
sys::Obj xml::XNode xml::XText
@Js
XText represents the character data inside an element.
- cdata
-
Bool cdataIf true then this text node was read/will be written as a CDATA section. If set to true, then
valmust not contain the "]]>" substring. - copy
-
This copy()Make a copy of this text node.
- make
-
new make(Str val)Construct a text node with the specified value.
- nodeType
-
virtual override XNodeType nodeType()Return the
XNodeType.text. - toStr
-
virtual override Str toStr()Return the string value (truncated if it is long).
- val
-
Str valCharacter 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)Write this node to the output stream. If this node is set to be written as a CDATA section and the
valstring contains the "]]>" substring then throw IOErr.