Fantom

 

class

xml::XText

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

XText represents the character data inside an element.

See docLib::Xml

Slots

cdataSource

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.

copySource

This copy()

Make a copy of this text node.

makeSource

new make(Str val)

Construct a text node with the specified value.

nodeTypeSource

override XNodeType nodeType()

Return the XNodeType.text.

toStrSource

override Str toStr()

Overrides sys::Obj.toStr

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

valSource

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.

writeSource

override Void write(OutStream out)

Overrides xml::XNode.write

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.