To add a text node to an existing parent element
:
p
Text (p,s)
The argument is a string containing the text you want to
add. For example, suppose you are building an XHTML web
page and you have an sElement
object for a paragraph (p
element) named helloP. This
code would an obnoxiously cheerful greeting to the paragraph:
Text ( helloP, "Hi! My name is (your name here)!" )