[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xmlblaster] XPATH strangeness continued
Michael Atighetchi wrote:
On Wed, May 28, 2003 at 06:16:34PM -0400, Michael Atighetchi wrote:
I ran into the following interesting XPATH behavior.
a subscription to
/xmlBlaster/key/foo[((bar/name='1') and (bar/time > 1054159013513))]
returns for a single subscription two update calls with identical
messages on the client.
CORRECTION: actually the expression that causes the strange behavior is
/xmlBlaster/key/foo[((bar/name='1')) and (bar/time > 1054159013513)]
Michael
Hi Michael,
all your XPath queries return correctly one message on my computer,
i have attached a file to play with,
Marcel
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!-- Examples how to subscribe to MsgUnits (see xmlBlaster/demo/queryXML/DomQueryTest.java): -->
<!-- java DomQueryTest Duplicate.xml "/xmlBlaster/key/foo[((bar/name='1') and (bar/time > 1054159013513))]" -->
<!-- java DomQueryTest Duplicate.xml "/xmlBlaster/key/foo[(bar/name='1') and (bar/time > 1054159013513)]" -->
<!-- java DomQueryTest Duplicate.xml "/xmlBlaster/key/foo[((bar/name='1')) and (bar/time > 1054159013513)]" -->
<xmlBlaster>
<key oid='1'>
<foo>
<bar>
<name>1</name>
<time>1054159013515</time>
</bar>
</foo>
</key>
</xmlBlaster>