[jdom-interest] Re: About filters

Kesav Kumar kesavk at voquette.com
Thu Jan 11 14:51:41 PST 2001


I feel JDOM is to reprasent XML in the memory efficiently.  If you want ot
have filtered access you can use XPath to get all the children of node with
XXX conditions.

Kesav Kumar
Software Engineer
Voquette, Inc.
650 356 3740
mailto:kesavk at voquette.com
http://www.voquette.com


----- original message -----
phil at triloggroup.com phil at triloggroup.com
Thu, 11 Jan 2001 16:02:53 +0100

As I'm extracting child elements from a parent one, I need something to
filter the extracted elements, more powerful than the name. I suggest
having a getChildren() method taking a filter callback, as a parameter.
The filter interface my be something like:

interface ElementFilter {
    boolean accept( Element child );
}



_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com



More information about the jdom-interest mailing list