The following programs work together to implement XML-based routing using an XML Exchange:
declare_queues.cpp creates a queue on the broker, declares an XML Exchange, subscribes the queue to the XML Exchange using an XQuery in the binding, then exits.
xml_producer.cpp publishes messages to the XML Exchange.
xml_consumer.cpp reads messages from the queue.
listener.cpp reads messages from the queue using a listener.