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

Re: [xmlblaster] XPATH problem

Hi Alexey,
I tried it with the script:

   to test it invoke:
   java javaclients.script.XmlScript -requestFile xpathTest.xml

<color id='green'/>

  <publish><key oid="1"><rose><color

  <wait delay="2000" />
  <get><key queryType="XPATH">//rose/color[ at id='green']</key><qos/></get>

  <erase><key oid="1"></key><qos><force/></qos></erase>
  <wait delay="500" />
  <disconnect />

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:
> <rose>
> <color id='green'/>
> </rose>
> 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?
> Thanks,
> Alexey.