On Tue, 12 Oct 2010, Yegor Kozlov wrote:
It turned out it is NOT so, getXXArray() is way faster than getXXXList(). I
analyzed the auto-generated source code and found that they work differently.
A call of getXXXArray() performs an XPATH request to the underlying DOM and
returns the selected beans.
A call of getXXXList() does nothing. The returned List is a custom subclass
of AbstractList where overridden List.get(int index) sends an XPATH request.
This means that XPATH is sent on every iteration or on every call of
List.get(int index).
Did you have any luck finding out why the xmlbeans array method is marked
as deprecated? I guess ideally we want to have the schemas generate a
version with the array methods, but no deprecation warnings. (We don't
want to skip the warnings, as that might mask something in future!)
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]