[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xmlblaster-devel] use xpath in C-API



Hello:

    I want to test xpath in C-api,so I subscribe use this Qos:
<key oid='' queryType='XPATH'>//romantic[ at langa='a3']</key>
<qos/>

   And I publish  like this:

<key oid='Hello'><romantic langa='a1'/></key>  <qos/>
<key oid='Hello'><romantic langa='a2'/></key>  <qos/>
<key oid='Hello'><romantic langa='a3'/></key>  <qos/>
<key oid='Hello'><romantic langa='a4'/></key>  <qos/>

  I can not receive the message.

  So I change the subscribe like this :
<key oid='' queryType='XPATH'>//romantic[ at langa]</key>
<qos/>

  Then I can receive all the 4 messages.

  If the predicate "romantic[ at langa='a3']" is wrong ?

Thanks very much !

peng