[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xmlblaster-devel] use xpath in C-API
peng at qcet.cn wrote:
>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/>
>
>
The problem is that the oid='Hello' is the same all
time.
The meta tags of the topic 'Hello' are immutable
and the first published message with 'a1' is used
to create the topic.
If you change it on following messages
this wont happen.
Please change the topic oid for each message (not high
performing for thousands of different topics/oid) or
use a subscribe filter as described in
http://www.xmlblaster.org/xmlBlaster/doc/requirements/mime.plugin.access.xpath.html
to filter the message content.
regards
Marcel
> 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
>
>
>
>
>
>
>