Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

Re: [jdom-interest] Child / attribute checking

Jason Hunter

2003-10-31

Replies:

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@(protected)
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@(protected)
>

_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.