I've been successful in using the xpath access filter with subscription messages, but 
not with get. I've been using the HelloWordPublish & HelloWorldSubscribe to test it:

java javaclients.HelloWorldPublish -oid Hello -content "<msgHandler/>"

If I use:
java javaclients.HelloWorldSubscribe -oid Hello -filter.type XPathFilter -filter.query 
"//*[contains(name(),'msgHandler')]"
(the published message is returned as expected)

If I use:
java javaclients.HelloWorldSubscribe -oid Hello -filter.type XPathFilter -filter.query 
"//*[contains(name(),'blah')]"
(no messages are returned, which is expected since the original msg content doesn't 
include <blah> as a tag)

But if I use Get instead:
java javaclients.HelloWorldGet -oid Hello -filter.type XPathFilter -filter.query 
"//*[contains(name(),'blah')]"
(the publish message is returned, but that is unexpected because I'm only supposed to 
be filtering for the content tag <blah>)

Am I missing something here, or goes the xpath access filter not work with get()? The 
documentation says it should. Can anyone point out what I'm doing wrong?

Reply via email to