<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2655.35">
<TITLE>RE: [jdom-interest] Unrequested blank Attrib. Namespace for only the top Element </TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Me thinks that you mis-understand Namespaces.</FONT>
</P>

<P><FONT SIZE=2>All your qsi Elements are in the &quot;&quot; Namespace, only it doesn;t say so on any but the top element.</FONT>
</P>

<P><FONT SIZE=2>Thus, in the example:</FONT>
</P>

<P><FONT SIZE=2>&lt;a xmlns=&quot;hello&quot;&gt;</FONT>
<BR><FONT SIZE=2>&nbsp; &lt;b /&gt;</FONT>
<BR><FONT SIZE=2>&nbsp; &lt;b /&gt;</FONT>
<BR><FONT SIZE=2>&nbsp; &lt;b /&gt;</FONT>
<BR><FONT SIZE=2>&nbsp; &lt;b /&gt;</FONT>
<BR><FONT SIZE=2>&nbsp; &lt;b /&gt;</FONT>
<BR><FONT SIZE=2>&lt;/a&gt;</FONT>
</P>

<P><FONT SIZE=2>Every element (the a and all the b's are in the &quot;hello&quot; namespace.</FONT>
</P>

<P><FONT SIZE=2>If you get around to reading the XML Spec, you will find that if you give a Default Namespace for an element (one without a prefix), then all the child elements will be part of that namespace unless explicitly given a different namespace.</FONT></P>

<P><FONT SIZE=2>Pay really close attention to the Spec at:</FONT>
<BR><FONT SIZE=2><A HREF="http://www.w3.org/TR/REC-xml-names/#scoping-defaulting" TARGET="_blank">http://www.w3.org/TR/REC-xml-names/#scoping-defaulting</A></FONT>
</P>

<P><FONT SIZE=2>Rolf</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Paul H. Roubekas [<A HREF="mailto:paul@roubekas.org">mailto:paul@roubekas.org</A>]</FONT>
<BR><FONT SIZE=2>Sent: Thursday, May 22, 2003 8:27 PM</FONT>
<BR><FONT SIZE=2>To: 'HUFFMAN BRADLEY S'</FONT>
<BR><FONT SIZE=2>Cc: jdom-interest@jdom.org</FONT>
<BR><FONT SIZE=2>Subject: RE: [jdom-interest] Unrequested blank Attrib. Namespace for</FONT>
<BR><FONT SIZE=2>only the top Element </FONT>
</P>
<BR>

<P><FONT SIZE=2>Someone Please help!</FONT>
</P>

<P><FONT SIZE=2>This is causing all my XPath expressions to return empty!&nbsp; I have a</FONT>
<BR><FONT SIZE=2>diedline and will have to work the weekend to fix this problem if no one</FONT>
<BR><FONT SIZE=2>here can help.</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: HUFFMAN BRADLEY S [<A HREF="mailto:hip@csa.cs.okstate.edu">mailto:hip@csa.cs.okstate.edu</A>] </FONT>
<BR><FONT SIZE=2>Sent: Wednesday, May 21, 2003 12:06 AM</FONT>
<BR><FONT SIZE=2>To: paul@roubekas.org</FONT>
<BR><FONT SIZE=2>Cc: jdom-interest@jdom.org</FONT>
<BR><FONT SIZE=2>Subject: Re: [jdom-interest] Unrequested blank Attrib. Namespace for</FONT>
<BR><FONT SIZE=2>only the top Element </FONT>
</P>

<P><FONT SIZE=2>&gt; Why does my top level element, and not any of the others created by</FONT>
<BR><FONT SIZE=2>the</FONT>
<BR><FONT SIZE=2>&gt; same code, always have a blank namespace declared? I only make new</FONT>
<BR><FONT SIZE=2>&quot;qsi&quot;</FONT>
<BR><FONT SIZE=2>&gt; in two classes where the code looks the same to me.&nbsp; Does the fact</FONT>
<BR><FONT SIZE=2>that</FONT>
<BR><FONT SIZE=2>&gt; each element has the same name causing the problem? </FONT>
</P>

<P><FONT SIZE=2>Does this happen with beta 8, 9, or the current cvs?</FONT>
</P>

<P><FONT SIZE=2>Brad</FONT>
</P>

</BODY>
</HTML>