The operator text() returns a string string1 composed of the textual representation of the result of query. If this result contains elements, the operator takes the concatenation of all the #PCDATAs occurring in those elements, excluding all gi's and attributes. If string2 is specified, all the string segments are separated by string2.
Prototype
string1 <-- text ( query [, string2 ] )
Examples
text ([1, 2, 3]); 123text(%<A>a<B>b</B>c</A>%); abctext(%<A>a<B>b</B>c</A>%, " "); a b ctext([1, %<A>a<B>b</B>c</A>%, 3], " "); 1 a b c 3text(top DATE within file $myfile, "\n"); 16 July 1991
8 September 1992
May 1988
6 and 7 May
1991
14 November
1991
16
June 1959
26 October 1992
18 March 1980
16 June 1959
28 January
1992
4 September 1992