<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<TITLE>Namespace</TITLE>
<META content="MSHTML 5.00.2919.6307" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=383272314-01082001>There's a FAQ entry about Namespaces on jdom.org that
talks about this.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=383272314-01082001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=383272314-01082001>Alex</SPAN></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> jdom-interest-admin@jdom.org
[mailto:jdom-interest-admin@jdom.org]<B>On Behalf Of </B>Sparkes,
Peter<BR><B>Sent:</B> Wednesday, August 01, 2001 4:53 AM<BR><B>To:</B>
'jdom-interest@jdom.org'<BR><B>Subject:</B> [jdom-interest]
Namespace<BR><BR></DIV></FONT>
<P><FONT face=Arial size=2>Hi,</FONT> </P>
<P><FONT face=Arial size=2>Namespace topicMapNS = Namespace.getNamespace("<A
href="http://www.topicmaps.org/xtm/1.0/"
target=_blank>http://www.topicmaps.org/xtm/1.0/</A>"); </FONT><BR><FONT
face=Arial size=2>Element topicMap = new Element("topicMap", topicMapNS);
</FONT><BR><FONT face=Arial size=2>topicMap.addContent(new Element("topic")
</FONT><BR><FONT face=Arial
size=2>
.setText("Topic Maps")); </FONT></P>
<P><FONT face=Arial size=2>Gives me:</FONT> </P>
<P><FONT face=Arial size=2><topicMap xmlns="<A
href="http://www.topicmaps.org/xtm/1.0/"
target=_blank>http://www.topicmaps.org/xtm/1.0/</A>"></FONT> <BR><FONT
face=Arial size=2> <topic xmlns="">Topic Maps</topic></FONT>
<BR><FONT face=Arial size=2></topicMap></FONT> </P>
<P><FONT face=Arial size=2>The "xmlns" attribute on element "topic" is not
wanted.</FONT> </P>
<P><FONT face=Arial size=2>Please, what am I doing wrong.</FONT> </P>
<P><FONT face=Arial size=2>Peter Sparkes </FONT></P><CODE><FONT
size=2></BLOCKQUOTE></FONT></CODE></BODY></HTML>