xpp {

       /* instantiate an object called x with contained nodes */

       node   x{

              <cats>56</cats>

              <dogs>74</dogs>

       };

      

       /* assign the following Barn and Farm nodes to x */

       x = $<Barn atom="5">256</Barn><Farm>Yours</Farm>;

      

       /* Now tell us some stuff about x and its contained nodes */

       xout("\r\nThe value of x is " + $$x.value());

       xout("\r\nThe value of Barn is " + $$x/Barn.value());

       xout("\r\nThe atom is " + $x/Barn.atom);

       xout("\r\nThe 1st child is " + $x.child(int = 0));

       xout("\r\nThe 2nd child is " + $x.child(int = 1));

}