text Property
Retrieves the contents of all the text nodes contained by the Node and any element nodes that it contains.

Syntax
var sData = Node.text;

Possible Values
sData The text contained by the Node.

Examples

The example below references the following XML data. The name of the root document element is "tale".

<?xml version="1.0"?>
<?access-control allow="*"?>
<tale>
Once upon a <b>time</b> in a <b>galaxy</b> <i>far</i>, far away...
</tale>

The following example uses the text property to retrieve the text contained by the root document element. The interpreter plays the text using the TTS engine.

<vxml version="2.0">
<data name="oData" src="tale2.exml"/>

<form id="form1">
<block>
   <!-- retrieve all text nodes contained by 
        the root document element -->
   <var name="tts" expr="oData.documentElement.text"/>
   <log><value expr="tts"/></log>
   <audio><value expr="tts"/></audio>
</block>
</form>
</vxml>


Applies To
Node
[24]7 Inc.| Terms of Service| Privacy Policy| General Disclaimers