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-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@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-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org

Reply via email to