xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
- To: Dick H <dick AT machj.com>, xom-interest AT lists.ibiblio.org
- Cc:
- Subject: Re: [XOM-interest] Element.getValue()
- Date: Thu, 22 May 2003 12:42:54 -0400
At 11:10 AM -0500 5/22/03, Dick H wrote:
I am using 1.0d12, my first experience with XOM and am overjoyed.
Found one nuisance with Element.getValue() when applied to an Element that has both Text and Element children. I want just the concatonation of the Text nodes in the current Element. getValue() includes even the non-Text child nodes. Don't want that.
Can you give me a use-case of why you'd want just the Text nodes, irrespective of all the child elements? This seems to me quite unusual and perhaps dangerous.
(note: getValue doesn't include all the child nodes. It skips comments and processing instructions)
--
Elliotte Rusty Harold
elharo AT metalab.unc.edu
Processing XML with Java (Addison-Wesley, 2002)
http://www.cafeconleche.org/books/xmljava
http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA
-
[XOM-interest] Element.getValue(),
Dick H, 05/22/2003
- Re: [XOM-interest] Element.getValue(), Elliotte Rusty Harold, 05/22/2003
- <Possible follow-up(s)>
-
[XOM-interest] Element.getValue(),
Dick H, 05/22/2003
- Re: [XOM-interest] Element.getValue(), Nils_Kilden-Pedersen, 05/22/2003
Archive powered by MHonArc 2.6.24.