<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4611.1300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>+1. Isn't this more and more present in any
method that get data from any source? If I remember well, it's something
used with properties files. That give the developer another alternative
instead of dealing with "null" as well.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Etienne</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=mjenning@islandnet.com href="mailto:mjenning@islandnet.com">Mike
Jennings</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=jdom-interest@jdom.org
href="mailto:jdom-interest@jdom.org">jdom-interest@jdom.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, December 22, 2000 10:27
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [jdom-interest] Suggestion</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>What about adding a method to
org.jdom.Element</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> public String
getAttributeValue(String name, Namespace ns, String default)<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Such that if the attribute named "name" does not
exist, the String "default" is returned.</FONT></DIV>
<DIV><FONT face=Arial size=2>This could be useful in cases where an XML file
has default values for attributes</FONT></DIV>
<DIV><FONT face=Arial size=2>that are not specified.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>What do the powers that be think of this
idea?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-Mike Jennings</DIV>
<DIV><BR></FONT> </DIV></BLOCKQUOTE></BODY></HTML>