getxout

Purpose The getxout statement is used to get the current contents of the output stream. In other words, it will report all the string data that was processed by the xout statements in a program.
Format getxout
Example #1 xout("Hello World!");
node x {
   <getxout />
};
xout("\r\nHello Again!");

The node called x contains the value Hello World! whereas the two lines are written to the output stream:
Hello World!
Hello Again!

The reason for this is that the current contents of the output stream at the getxout statement consist of the first line only.

Example #2 xout("Hello World!");
node x;
x = getxout;

xout("\r\nHello Again!");

The node called x contains the value Hello World! whereas the two lines are written to the output stream:
Hello World!
Hello Again!

The reason for this is that the current contents of the output stream at the getxout statement consist of the first line only.