From: Lars H. <he...@se...> - 2009-02-20 13:26:55
|
Hi all, The "semagia-mio-xtm-0.9.3.jar" contains a bug which ignores the validation of XTM instances in some cases. Funnily, validation with the generic XTMTopicMapReader works but not with the specialised XTM(10|20)TopicMapReaders. I replaced the above mentioned lib with "semagia-mio-xtm-0.9.3-sp1.jar" (SVN rev. 265) and the validation of XTM instances works now with all XTM*Readers. Note that validation is disabled by default (for performance reasons) and if you want to validate the XTM sources you need the "jing.jar" in your classpath. If you enable validation explicitly XTM20TopicMapReader reader = new XTM20TopicMapReader(....); reader.setValidation(true); reader.read(); the source is automatically validated against a RELAX-NG schema. BTW, the TMXMLTopicMapReader has a similar feature. If time permits, I'll make a SP1 release of tinyTiM MIO 2.0.0a4 / 1.5.0b2 this weekend. For the time being you can fetch the lib from the SVN (do not forget to delete "semagia-mio-xtm-0.9.3.jar" from your classpath). Best regards, Lars -- Semagia <http://www.semagia.com> |