Re: dia barfing on valid xml input



2008/5/1 Hans Breuer <hans breuer org>:
 Yes. And there is one importer registering for xml now : doxml.py.
 So the automatic detection does not pick-up the one you want. If you call
 your file filename.dia that would certainly help.

That fixes it, but is definately a workaround rather than solution.

 Formerly there was no importer registering for xml so you cgot the Dia
 format reader by fallback.

May I politely suggest checking the namespace of an xml file before
deciding which importer to use, failing that a graceful fallback would
be to revert to previous behaviour if using the python importer breaks
rather than barfing on a valid file because of the extension.

A.


-- 
http://www.aarontrevena.co.uk
LAMP System Integration, Development and Hosting



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]