From: Kal A. <ka...@te...> - 2001-10-01 09:31:38
|
Hi Jesper, At 10:36 30/09/2001 +0200, Jesper Rasmussen wrote: >I dont know if this is known of if im doing something wrong. >I'm making a (restricted, domain specific) XTM editor. > >I can create the tm, and export it to xtm and the file is as it should. >When i read the topicmap back in all the topic id's is wrong and looks like: >x1fo7pot2k-XX where XX chneges. >I have browsed the archives but couldent seem to find anything about it. >thanks! Were you hoping to see the value of the ID attribute from your XTM file instead ? If so, then you need to use getResourceID() rather than getID(). The ID property is a back-end assigned object identifier. The resourceID property is the normalized value of the ID attribute in the source file that was parsed to produce the topic map. If you use XTMBuilder to create the topic map, then this should be the normalized value of the ID attribute (it is normalized by combining it with the baseURL of the topic map document). Hope this helps, Kal |