generateDS.py understands XML schema. It reads an XML schema and generates Python code that can process XML documents of the type described by that schema.
Since XMI looks like XML to me, if you have an XML schema that describes those document types, it's possible that you could feed that schema to generateDS.py and that would produce Python code that could parse and export those XMI documents. But, no, generateDS.py does not understand XMI. It will not generate Python data structures from XMI. Hope this helps clarify this. If/when you have more questions, let me know. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman >________________________________ > From: Michael Babst <m...@babst.net> >To: generateds-users@lists.sourceforge.net >Sent: Tuesday, January 17, 2012 5:59 PM >Subject: [Generateds-users] Converting UML Profile > > >I would like to generate python data structures that are compliant with the >schema defined >in the XMI files here: http://www.omg.org/spec/MARTE/1.1/ > >When the generateDS script is run on the XMI files, the following error occurs: >"AttributeError: 'NoneType' object has no attribute 'annotate'", >even with -a flag. > >Does the script work with XMI documents? > >Cheers > > > > >------------------------------------------------------------------------------ >Keep Your Developer Skills Current with LearnDevNow! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-d2d >_______________________________________________ >generateds-users mailing list >generateds-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/generateds-users > > > ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users