[From nobody Fri Aug 6 17:06:36 2004 X-Mozilla-Status2: 00000000 Message-ID: <3B3B6ABC.E80C610E@swsgmbh.de> Date: Thu, 28 Jun 2001 18:34:53 +0100 From: Markus Bernhardt <mbernhardt@swsgmbh.de> X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: Elliotte Rusty Harold <elharo@metalab.unc.edu> Subject: Re: [jdom-interest] getMixedContent -> getContent References: <000501c0ff1b$a3606fa0$1065810a@silverstream.com> <p04330103b760f3cf60a9@[192.168.254.4]> Content-Type: multipart/mixed; boundary="------------78BB55B6166354C6C546A6D5" This is a multi-part message in MIME format. --------------78BB55B6166354C6C546A6D5 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Elliotte Rusty Harold wrote: > I wanted to weigh in on this. I just looked through the JavaDocs, and > it seems very clear to me that getChild should be renamed > getChildElement(), getChildren() should be renamed > getChildElements(), and so forth through the API. The current API is > way too confusing on this point. > > Longer term, I wonder if there's some way we can add an overloaded > getContent() method that takes some sort of filter object as an > argument, so that users could pass in filters to get only comments, > only text nodes, only text nodes that weren't ignorable white space, > only elements in a certain namespace, etc. Would like it. Isn't the SAXFilter a better place to ignore white spaces ??? > > -- > > +-----------------------+------------------------+-------------------+ > | Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer | > +-----------------------+------------------------+-------------------+ > | The XML Bible, 2nd Edition (Hungry Minds, 2001) | > | http://www.ibiblio.org/xml/books/bible2/ | > | http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/ | > +----------------------------------+---------------------------------+ > | Read Cafe au Lait for Java News: http://www.cafeaulait.org/ | > | Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/ | > +----------------------------------+---------------------------------+ > _______________________________________________ > To control your jdom-interest membership: > http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com --------------78BB55B6166354C6C546A6D5 Content-Type: text/x-vcard; charset=us-ascii; name="mbernhardt.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Markus Bernhardt Content-Disposition: attachment; filename="mbernhardt.vcf" begin:vcard n:Bernhardt;Markus tel;cell:0171-5770462 tel;fax:089-420903-20 tel;home:089-6378949 tel;work:089-420903-14 x-mozilla-html:FALSE url:www.swsgmbh.de org:Software Service Wulf Schupp GmbH;Spieljoch adr:;;Spieljochstr. 34;München;;81825;Germany version:2.1 email;internet:mbernhardt@swsgmbh.de title:Entwicklungsleiter note;quoted-printable:[dF]Quisam=0D=0Awww.discordian-Front.de=0D=0AHail Eris !!!=0D=0AHappy Frag !!! fn:Markus Bernhardt end:vcard --------------78BB55B6166354C6C546A6D5-- ]