Does the XBee support routing?
The version of the firmware discussed here, 1.083, is mainly 802.15.4. Other versions are in beta, which may include ZigBee functions of routing, though they may not be compatible with the examples illustrated here. With a little coding, routing may be designed into the BASIC Stamp to assist in these needs.