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

Re: [xmlblaster] XPath Filtering


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.

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,


-------- 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


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer