[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xmlblaster] XPATH problem
I tried it with the script:
to test it invoke:
java javaclients.script.XmlScript -requestFile xpathTest.xml
<wait delay="2000" />
<get><key queryType="XPATH">//rose/color[ at id='green']</key><qos/></get>
<wait delay="500" />
And it correctly returned the published entry.
Гришков Алексей wrote:
> Hello and sorry for my bad English :)
> I have a problem with getting messages(I use Java and PHP demos and my
> own Delphi client).
> For example, I publish message like:
> <color id='green'/>
> and then trying to get it with XPATH //rose/color[ at id='green'], but
> don't receive any matching message.
> However, if I subscribing first on this message and then publish it,
> it's works!
> And there is something strange. If I use //rose/color[ at id=''] i.e. empty
> attributes, it's also works.
> What I do wrong?