newText

The newText tag creates a new node in the model that will contain text.


Tag Summary
 
required <newText node="value" name="value" />
 
full tag <newText node="value" name="value" location="value" cdata="value" />

Required Attributes
 
node A query expression that describes a single node in the model that will be the parent for the new model node. If several nodes are returned for this expression, then the first of those nodes is assumed to be the desired node.
name The name of the new node.

Optional Attributes
 
location Always "below", if specified.
cdata Indicates whether this text should be written out by the dump tag as a CDATA element (true) or plain text (false)

Example
 
<newText
        node="servlet"
        name="description"
        location=""
        cdata="false" >this is the servlet's description</newText>

This newText tag will create a new child node under the node currently associated with the name "servlet". The new node will be named "description" and will contain the text "this is the servlet's description".


© Copyright IBM Corporation 2000, 2006. All Rights Reserved.