[jdom-interest] ElementFilter

Jason Hunter jhunter at servlets.com
Fri May 10 16:35:16 PDT 2002


Elliotte Rusty Harold wrote:
> 
> To me at least the documentation for the ElementFilter constructors is
> misleading. It states:
> 
> public *ElementFilter*()
> 
>     Filter out the Elements.
> 
> public *ElementFilter*(java.lang.String name)
> 
>     Filter out the Elements with the supplied name in any Namespace.

I fixed the text with s/Filter out/Select only/g.

One thing though.  The above says EF(String) finds elts in any
namespace.  That's counter to how getChildren(String) behaves. 
Shouldn't the filter match?

-jh-



More information about the jdom-interest mailing list