You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Benson Margulies <bi...@gmail.com> on 2008/11/16 21:29:13 UTC

NodeList and XmlSchema

WSCOMMONS-362 notes that NodeList is inherently non-thread-safe.
XmlSchema exposes a few APIs that accept and return NodeList's of
markup content for AppInfo and Documentation. Would anyone object to
changing those, incompatibly, to List (containing Nodes) for 1.4.3? I
might object myself, in which case these changes would have to wait
for a 1.5 or 2.0.

Re: NodeList and XmlSchema

Posted by Daniel Kulp <dk...@apache.org>.
On Sunday 16 November 2008 3:29:13 pm Benson Margulies wrote:
> WSCOMMONS-362 notes that NodeList is inherently non-thread-safe.
> XmlSchema exposes a few APIs that accept and return NodeList's of
> markup content for AppInfo and Documentation. Would anyone object to
> changing those, incompatibly, to List (containing Nodes) for 1.4.3? I
> might object myself, in which case these changes would have to wait
> for a 1.5 or 2.0.

I commented on WSCOMMONS-362 already, but.....

I would definitely keep the API's as is for 1.4.3.   You SHOULD be able to 
wrapper a List<Element> type thing with something implementing NodeList 
pretty easily.     For 2.0, cleaning this stuff up to just use List<Element> 
or similar so they can work with the Java5 for loops and such would be 
preferred.

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog