When a binding for an XML exchange is specified with qpid-config, it does not seem to be passed correctly to the actual binding - perhaps the spaces or quotes are confusing qpid-config? # qpid-config -a 10.60.101.70:5672 bind sita.xml flightXML "./message/id mod 2 = 1" Failed: SessionException - exception(error_code=541, command_id=serial(50), class_code=7, command_code=4, field_index=0, description=u'internal-error: Could not parse xquery: (qpid/xml/XmlExchange.cpp:113)', error_info={}) The same query works fine when passed as a string from Python or C++.
There is a -f/--file option for specifying a query. See qpid-config --help.