Re: gnu.xml.dom.DomText implements Text and NodeList.

2006-01-10 Thread Pedro Izecksohn
Em Ter 10 Jan 2006 04:50, Chris Burdess escreveu: I would prefer: final class EmptyNodeList implements NodeList { static final EmptyNodeList instance = new EmptyNodeList(); public final int getLength() {return 0;} public final Node item(int index) {return null;} } That way:

Re: gnu.xml.dom.DomText implements Text and NodeList.

2006-01-09 Thread Pedro Izecksohn
We ask that people agree to the GNU Classpath Hackers requirements before granting CVS commit permissions. You can find them at: http://www.gnu.org/software/classpath/docs/hacking.html#SEC2 I'm submiting source code to this list to be included in the GNU classpath project, assuring that I wrote

gnu.xml.dom.DomText implements Text and NodeList.

2006-01-03 Thread Pedro Izecksohn
in SableVM classpath because for gnu.xml.dom.DomNode, node.getChildNodes() returns itself. My proposed solution is: Add to gnu.xml.dom.DomText: import org.w3c.dom.NodeList; /** * Returns an EmptyNodeList. * * @author Pedro Izecksohn */ public NodeList getChildNodes() { return