case classText(text: String) extends Node with Product with Serializable
A node containing a single string, representing character data in the XML tree.
For example:
Lorem ipsum & dolor sit amet
This would result in the following node:
Text("Lorem ipsum & dolor sit amet")
Note that reserved characters (as defined by the XML 1.0 spec) are escaped
when calling toString. Thus, if you invoke toString on the Text node
given in the example above, the result will reverse back into the original
text, including the & escape. If you need a text representation which
does not escape characters on output, use com.codecommit.antixml.CDATA.
A node containing a single string, representing character data in the XML tree. For example:
This would result in the following node:
Text("Lorem ipsum & dolor sit amet")
Note that reserved characters (as defined by the XML 1.0 spec) are escaped when calling
toString
. Thus, if you invoketoString
on theText
node given in the example above, the result will reverse back into the original text, including the&
escape. If you need a text representation which does not escape characters on output, use com.codecommit.antixml.CDATA.