> From: Juan Miguel
>Sent: Monday, May 7, 2012 9:31 AM
> 

> Hello Dave,
> 
> I'm spanish developer working on django. I've seen your fantastic
> lib GenerateDS. I have taken a look into the documentation, and I
> have seen you can generate Django models from XSD. Is it the
> contrary process possible? I mean, could I generate a XSD from a
> Django model using GenerateDS  and have the possibility to parse
> or export XML according to that schema? If not, could I
> contribute in some way to do that?
> 
> Thanks in advance.

Juan -

So, you are suggesting that we generate an XML schema from a Django
model definition.  In effect, we'd be using Django models as a
(limited) schema language.  Wow.  That's a very interesting idea.  I
wish I'd thought of that.

But, no, generateDS does not do that.  In fact, there is nothing
specific to generateDS in that task.  So, you might want to ask that
question on one of the Django forums.

I believe that if I were to try to attempt it, I'd think about
implementing a mix-in class that could be inherited from (in
addition to (django.db.models.Model).  That could make it reasonably
easy to "walk" the model definition, and generate an element
definition for each Django model.

Best of luck with it.  I suspect that there would be other Django
developers who would be interested in this also. Let me know if you
make some progress with it.

- Dave


 

--


Dave Kuhlman
http://www.rexx.com/~dkuhlman

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to