<!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.2650.12">
<TITLE>Namespace</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">Element topicMap = new Element("topicMap", topicMapNS); </FONT>
<BR><FONT SIZE=2 FACE="Arial">topicMap.addContent(new Element("topic") </FONT>
<BR><FONT SIZE=2 FACE="Arial"> .setText("Topic Maps")); </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Gives me:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"><topicMap xmlns="<A HREF="http://www.topicmaps.org/xtm/1.0/" TARGET="_blank">http://www.topicmaps.org/xtm/1.0/</A>"></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <topic xmlns="">Topic Maps</topic></FONT>
<BR><FONT SIZE=2 FACE="Arial"></topicMap></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">The "xmlns" attribute on element "topic" is not wanted.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Please, what am I doing wrong.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Peter Sparkes </FONT>
</P>
<CODE><FONT SIZE=2><BR>
<BR>
**********************************************************************<BR>
This email and any files transmitted with it are confidential and<BR>
intended solely for the use of the individual or entity to whom they<BR>
are addressed. If you have received this email in error please notify<BR>
the system manager.<BR>
<BR>
This footnote also confirms that this email message has been swept by<BR>
MIMEsweeper for the presence of computer viruses.<BR>
<BR>
www.mimesweeper.com<BR>
**********************************************************************<BR>
</FONT></CODE></BODY>
</HTML>