commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnreddy <naveen.red...@gmail.com>
Subject Re: Commons XMLConfiguration Issue --XPath query with /root
Date Thu, 26 Mar 2009 14:42:36 GMT

Thanks Oliver for clarifying this.... 


Oliver Heger-3 wrote:
> 
> bnreddy schrieb:
>> Hi christian,
>> 
>>     From my understanding (correct me if I am wrong)... "The root element
>> is
>> ignored when constructing keys". but this is when XMLConfiguration is
>> using
>> DefaultExpressionEngine....
>> 
>>    Is root element ignored even when the XPathExpressionEngine is being
>> used
>> by XMLConfig...
>> 
>>   The problem is ...there are preexisting XPaths and we need to fit this
>> in
>> that...
>> 
>>   as per shouldn't the XMLConfiguration be able to support all legal
>> XPath's
>> instead of trimming root elements...
> 
> XMLConfiguration used to ignore the root element from the very 
> beginning. Expression engines were introduces later, but when the 
> refactoring was done this behavior was not changed to remain backwards 
> compatible.
> 
> When XPathExpressionEngine was implemented it seems only natural to 
> mimic the behavior of DefaultExpressionEngine to be consistent.
> 
> Oliver
> 
>> 
>> 
>> 
>> this is noted in the user guide: XPathExpressionEngine expressions
>> ignore the root element - so just leave it away. What problems could
>> arise from this?
>> 
>> christian!
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Commons-XMLConfiguration-Issue---XPath-query-with--root-tp22704510p22723428.html
Sent from the Commons - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message