You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by yehui liu <li...@gmail.com> on 2005/03/01 13:05:57 UTC
[Configuration] Is there a xpath like filter function in XMLConfiguration?
I mean something like this:
property = conf.getProperty("list.item[@name=\"one\"]");
assertEquals("one", property);
property = conf.getProperty("list.item[@name=\"one\"].element");
thx.
Liu yehui
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [Configuration] Is there a xpath like filter function in XMLConfiguration?
Posted by Oliver Heger <ol...@t-online.de>.
Unfortunately ATM there is no such feature. But XPath support is on our
todo list.
Oliver
yehui liu wrote:
>I mean something like this:
>
> property = conf.getProperty("list.item[@name=\"one\"]");
> assertEquals("one", property);
>
> property = conf.getProperty("list.item[@name=\"one\"].element");
>
>thx.
>
>Liu yehui
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org