4.6. XML-based Routing in Python
The following programs work together to implement XML-based routing using an XML Exchange:
declare_queues.py 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.py publishes messages to the XML Exchange.
xml_consumer.py reads messages from the queue.
listener.py reads messages from the queue using a listener.