Microsoft SDK for Java

setText

This method of the Element interface sets the text for this element. setText is meaningful in only CDATA, PCDATA, and COMMENT nodes.

Syntax

public void setText(String text);

Parameters

text The text to set.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.