From: <geo...@hu...> - 2001-10-01 15:10:31
|
Hi, could anybody please post some lines of code how to write a XTM-file from scratch? TIA, david Got no success with the following... File file = new File("xtmtest01.xml"); TopicMapFactory tmf = new TopicMapFactoryImpl(); TopicMap tm = tmf.createTopicMap(); URL xtmurl = new URL("http://topicmap.techquila.com/default"); tm.setBase(xtmurl); tm.setName("firststopicmap"); tm.setID("tmId"); Topic topic = tmf.createTopic("justAnId"); tm.addTopic(topic); writeTopicMap(tm, file); |