Next / Previous / Contents / TCC Help System / NM Tech homepage

13.4. The Text class

To add a text node to an existing parent element p:

Text ( p, s )

The s 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 Element 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)!" )