[jdom-interest] Child / attribute checking

Jason Hunter jhunter at servlets.com
Fri Oct 31 09:47:34 PST 2003


elt.getChildElement("childname") == null

That's the new method name from CVS.  It was getChild() before I think.

-jh-

Peterson, Nathan wrote:

> I'm just wondering if there is a easier way to check if Named Children /
> Attributes exists than executing a try/catch statement? something line
> (boolean)Element.childExists("<childname>") or
> (boolean)Element.attributeExists("<attribute>")?
> 
> ##########################################################
> Nathan Peterson               Phone:  (515)-232-2161 x 271
> Systems Administrator       Help Desk: (515)-232-2161 x275
> Iowa Newspapers, Inc                npeterson at amestrib.com 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
> 




More information about the jdom-interest mailing list