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

Re: [xmlblaster] XPath Filtering



leduke4223 at gmx.net wrote:
Hi,

thanks alot for your help. I tried everything and now some additional questions came up.

I do something like: <key oid='config'><foo><bar/></foo></key>

where foo has several attributes


Now I want to use XPath to filter the messages on the changing attributes which are published under the same topic.
As said, this is not possible

The topic 'config' keeps the xml markup as defined on the first publish which created the topic

To filter messages from the same topic you need to use the content or qos together with our mime plugins
see
http://www.xmlblaster.org/xmlBlaster/doc/requirements/mime.plugin.access.xpath.html


regards
Marcel
I tried the following things, neither of those worked:

1. Publishing this: <key oid='config'><foo att1='' att2='' att3=''><bar/></foo ></key>

I can't do a //key[at oid='config']/foo[at att='10']

2. Publishing this: <key oid='config'><foo att1='10' att2='' att3=''><bar/></foo ></key>

Filtering //key[at oid='config']/foo[at att='10'] returns all messages that  have attribute value 10, but none with other values

Is there any way to define the markup using any wildcards so that this kind of filtering works?

Best regards,

Chris

-------- Original-Nachricht --------
Datum: Thu, 03 Aug 2006 22:46:18 +0200
Von: Marcel Ruff <mr at marcelruff.info>
An: xmlblaster at server.xmlBlaster.org
Betreff: Re: [xmlblaster] XPath Filtering

"<key oid='config'><foo><bar/></bar></key>"

oops, must be well formed like

 "<key oid='config'><foo><bar/></foo></key>"

Marcel