Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] prefixChild?

xom-interest AT

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Laurent Bihanic <laurent.bihanic AT>
  • To: Elliotte Rusty Harold <elharo AT>
  • Cc: xom-interest <xom-interest AT>
  • Subject: Re: [XOM-interest] prefixChild?
  • Date: Mon, 05 May 2003 10:40:03 +0200

Elliotte Rusty Harold wrote:
public void prefixChild(Node child)

This would insert a new Node at the beginning of the parent's list rather than the end. I got this idea because I noticeds that in my sample code, 9 times out of 10 when parent.insertChild(n, node) is called, n is equal to 0.

-1: Every programmer will understand insertChild(0, node). I don't think there's a need for a method dedicated to prepend.


Archive powered by MHonArc 2.6.24.

Top of Page