[jdom-interest] no getChildTextNormalize() ?
Kent Johnson
kentj at rsn.hp.com
Fri Sep 28 08:30:34 PDT 2001
+1 also. In fact, I could start on this JDOMHelper class this weekend,
and add all the text handling methods, if y'all agree it's a good idea.
-Kent
On Fri, 28 Sep 2001, Laurent Bihanic wrote:
>
> Alex Rosen wrote:
>
> > I'm always conflicted about convenience methods. They're so nice when you
> > use them, but if you don't use them, they just clutter up the interface.
> > I've always been thinking that all the getChildText() and the trimming and
> > normalizing methods belong in helper classes, since they're only appropriate
> > for one style of XML documents. Like:
> >
> > String val = JDOMHelper.getChildTextNormalize(element, "childname");
> >
>
>
> +1 for a utility class as there are many such methods that would be useful:
> Allocation of a SAX parser, normalizeText() for any text (e.g. for
> comments, etc.
>
>
>
> _______________________________________________
> 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