[jdom-interest] Important proposal: Element/Document changes
Chris Atkins
atkicd at nm.usa.alcatel.com
Thu Jul 27 11:58:49 PDT 2000
I guess I am missing something. To get the exact string, I first need to do
a getMixedContent() and find the one I want. Once I do this, I might as
well modify the list and then call the correct method to replace the entire
contents of the element, same thing that you suggested for adding content at
a specific location.
If this is correct, why have the method in the first place?
Chris Atkins
> -----Original Message-----
> From: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org]On Behalf Of Jason Hunter
> Sent: Thursday, July 27, 2000 12:40 PM
> To: atkicd at nm.usa.alcatel.com
> Cc: 'Jason Hunter'; tsasala at hifusion.com; jdom-interest at jdom.org
> Subject: Re: [jdom-interest] Important proposal: Element/Document
> changes
>
>
> It does a == check. So it removes the exact string you passed in,
> presumably retrieved from getMixedContent(). I say this in the new
> Javadocs too.
>
> -jh-
>
> Chris Atkins wrote:
> >
> > > boolean removeContent(String text)
> > I do not see how removeContent(String) is really going to
> > work. It seems
> > you are making an assumption that each String item in the
> > content has a
> > unique value. This is not necessarily true. In that case,
> > you need to be
> > able to specify which one, or just remove the first one.
> >
> > Chris Atkins
> > _______________________________________________
> > To control your jdom-interest membership:
> >
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
_______________________________________________
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