[jdom-interest] Namespace
Sparkes, Peter
peter.sparkes at derwent.co.uk
Wed Aug 1 01:52:55 PDT 2001
Hi,
Namespace topicMapNS =
Namespace.getNamespace("http://www.topicmaps.org/xtm/1.0/");
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>
</topicMap>
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.
www.mimesweeper.com
**********************************************************************
-------------- 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