<DIV>
<DIV>Hi, </DIV>
<DIV>I made some improvments on the code I submited yesterday.</DIV>
<DIV>Follows a description of the implmentation</DIV>
<DIV>/**<BR>&nbsp;* A Filter that only matches <A href="mailto:{@link">{@link</A> org.jdom.Element} objects<BR>&nbsp;* that feet the supplied, if so, element name, element namespace, attribute name,<BR>&nbsp;* attribute namespace,&nbsp; attribute value and attribute type.<BR>&nbsp;* The attribute type is passed through a filtermask.<BR>&nbsp;* With the implementation it is easy to look up an element according to <BR>&nbsp;* its id value as to any attribue value. <BR>&nbsp;* &lt;code&gt;Document document ....;&lt;/code&gt;<BR>&nbsp;* &lt;code&gt;ElementFilter2 filter = new ElementFilter2();&lt;/code&gt;<BR>&nbsp;* &lt;code&gt;filter.setFilterMask(ElementFilter2.ID)&lt;/code&gt;<BR>&nbsp;* &lt;code&gt;filter.setAttributeValue(aIdValue)&lt;/code&gt;<BR>&nbsp;* No need of implementing specific <BR>&nbsp;* Document and Element classes as done in org.jdom.contrib.ids package.<BR>&nbsp;* Null elementName, elementNamespace, attributeName, attributeNamespace or attributeValue<BR>&nbsp
 ;* mean
 any elementName, elementNamespace, attributeName, attributeNamespace or attributeValue<BR>&nbsp;* may be selected, except other retriction according to other rules.<BR>&nbsp;* The default filter mask permits to select any attribute type.<BR>&nbsp;* Importance of criteria :<BR>&nbsp;* ----------------------<BR>&nbsp;* elementNamespace &gt; elementName &gt; attributeNamespace (considered only if elementNamespace == null ) <BR>&nbsp;* &gt; attributeName &gt; attributeValue &gt; attributeType<BR>&nbsp;*&nbsp;<BR>&nbsp;</DIV></DIV><p>
                <hr size=1> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://uk.rd.yahoo.com/evt=21626/*http://uk.messenger.yahoo.com"><strong><font face="Arial, Helvetica, sans-serif">ALL-NEW 
Yahoo! Messenger</font></strong></a><font face="Arial, Helvetica, sans-serif"><strong> 
- all new features - even more fun!</strong></font><strong><font color="#FF9900"> 
</font></strong></font>