<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=694474314-03072006><FONT face=Arial
color=#0000ff size=2>Searching when you only know the localName can be useful,
but a couple of observations:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=694474314-03072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=694474314-03072006><FONT face=Arial
color=#0000ff size=2>(a) your proposed object (the wildcard) is not a Namespace,
so it is wrong to model it as one. Correct design would change the method to
accept a "NamespaceTest" object which could be either a Namespace or a
NamespaceWildcard.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=694474314-03072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=694474314-03072006><FONT face=Arial
color=#0000ff size=2>(b) you need to think carefully about whether you want to
match "any namespace", or "any namespace or none". Remember that technically,
(and very inconveniently) unqualified attribute names are not in any namespace:
it's wrong to refer to them as being in some default, unnamed, or null
namespace.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=694474314-03072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=694474314-03072006><FONT face=Arial
color=#0000ff size=2>Michael Kay</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=694474314-03072006><FONT face=Arial
color=#0000ff size=2><A
href="http://www.saxonica.com/">http://www.saxonica.com/</A></FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> jdom-interest-bounces@jdom.org
[mailto:jdom-interest-bounces@jdom.org] <B>On Behalf Of </B>Kevin
POCHAT<BR><B>Sent:</B> 03 July 2006 14:45<BR><B>To:</B>
jdom-interest@jdom.org<BR><B>Subject:</B> [jdom-interest]
Namespace.ANY_NAMESPACE<BR></FONT><BR></DIV>
<DIV></DIV>Hi,<BR><BR>I'm working on an app using a DTD to generate JDOM-based
XML Parsers.<BR>When I use calls to Element.getAttributeValue() I don't
necessarily know what is the namespace of the looked up
attribute.<BR><BR>Would it be considered as useful or as a sacrilege to
implement a static Namespace to be used as a "wildcard" namespace ? <BR>If
useful, do you have any guidlines concerning various points to take care of
during such a development ? I currently just set it to be taken in
consideration in the Namespace.equals(Object ob) method.<BR><BR>Thanks,
<BR><BR>Kevin POCHAT </BLOCKQUOTE></BODY></HTML>