Changing a Elements text value ?

"Hall, Philip" <[email protected]> Thu, 13 Feb 2003 15:23:42 -0600
Newsgroups gmane.comp.java.enhydra.kxml
Message-ID <[email protected]>
Hi,

This would seem easy, I was looking for the corresponding <element>.setText( String s ) method tot he <element>.getText() but there isn't one.

How do I programmatically set the text value of an element to something different, i.e.;

Given:

<myElement>This is text</myElement>

Change it to;

<myElement>This is new exciting text</myElement>

?

Thanks,

--phil