[jdom-interest] Important proposal: Element/Document changes
smeister at zenimax.com
Tue Jul 25 07:37:20 PDT 2000
> -----Original Message-----
> From: Jason Hunter [mailto:jhunter at collab.net]
> String getText()
> Returns untrimmed text content. Replaces getContent(true). Content
> just isn't the right name for the text nodes.
> List getMixedContent()
> Returns the full content of an element, replacing
> getMixedContent(true). Remove getMixedContent(boolean)
> because any time
> you're interested in the low-level mixed content you
> presumably want to
> see all the whitespace nodes, or could at least ignore them yourself.
> Is that true? Naming this method getContent() might be nicer but that
> will cause subtle bugs to existing code. This also makes it clear the
> List may contain various types of objects.
What is the behavior if you call getText() on an element that contains mixed
content? Does the method simply return the first text child it finds? I.e.
if you have
This contains <b>mixed</b> content
What would I get if I called getText() on this element?
More information about the jdom-interest