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

RE: [xmlblaster] XPATH Filter (urgent help)



Thanks.

Best regards,
Eduardo.

-----Original Message-----
From: owner-xmlblaster at server.xmlBlaster.org
[mailto:owner-xmlblaster at server.xmlBlaster.org] On Behalf Of Marcel Ruff
Sent: quinta-feira, 6 de Outubro de 2005 14:05
To: xmlblaster at server.xmlBlaster.org
Subject: Re: [xmlblaster] XPATH Filter (urgent help)

Eduardo Catarino wrote:

> Hi,
>
> I'm trying to filter received messages using the XPATH. The filter 
> condition is for the same oid I need to detect only the messages with 
> the same zoneid. For this I'm subscribing the messages whit the 
> following key:
>
> <key oid='Sub1' queryType='XPATH'>
>
> //zones[ at zoneid='1']
>
> </key>
>
Note that the *first* message send to 'Sub2' creates the meta info for 
this topic,
following messages to 'Sub2' wont change it.
Please check with 'jconsole' how your 'Sub2' key markup is 
(MBeans->org.xmlBlaster->node->xy->topic->Sub2->TopicXml)

rgds
Marcel

> Where the message sent is:
>
> <key oid='Sub2' contentMime='text/xml'>
>
> <zones zoneid='1' lmt='1'></zones>
>
> </key>
>
> <content><![CDATA[<?xml version="1.0OTHERALERT"?><LIAISON_RCC 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:noNamespaceSchemaLocation="alertMessageInformation.xsd"> 
> <DATE>2003-12-25</DATE> <TIME>13:13:25</TIME> <OTHERALERT_INFORMATION>

> <ALERT_ID>12</ALERT_ID> <ZONE_ID>1</ZONE_ID> 
> <OTHER_ALERT_TYPE>2</OTHER_ALERT_TYPE> 
> <RELATED_MESSAGE_ID>5</RELATED_MESSAGE_ID> 
> <RELATED_MESSAGE_LMT>AB1</RELATED_MESSAGE_LMT> 
> <RELATED_MESSAGE_PRODUCER>1</RELATED_MESSAGE_PRODUCER> 
>
<RELATED_MISSION>25</RELATED_MISSION><MW_SENDER>AGuidi</MWSENDER><STATUS
>0</STATUS> 
> <ERROR_ID>34</ERROR_ID> <ERROR_DESCRIPTION>The message was not sent 
> since the LMT is unreachble</ERROR_DESCRIPTION> 
> </OTHERALERT_INFORMATION></LIAISON_RCC>]]></content>
>
> <qos>
>
> <persistent/>
>
> <isPublish/>
>
> </qos>
>
> However this is not working properly. I'm new using the XPATH tool so 
> I thing that my problem is in the formulation of the filter, so I 
> really need some hel in solving the problem.
>
> Best regards to all,
>
> Eduardo Catarino
>