[jdom-interest] Namespace

Sparkes, Peter peter.sparkes at derwent.co.uk
Wed Aug 1 01:52:55 PDT 2001


Namespace topicMapNS =
Element topicMap = new Element("topicMap", topicMapNS); 
topicMap.addContent(new Element("topic") 
                   .setText("Topic Maps")); 

Gives me:

<topicMap xmlns="http://www.topicmaps.org/xtm/1.0/">
  <topic xmlns="">Topic Maps</topic>

The "xmlns" attribute on element "topic" is not wanted.

Please, what am I doing wrong.

Peter Sparkes 

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20010801/08d4f819/attachment.htm

More information about the jdom-interest mailing list