> From: Peter Kreinhöfer >Sent: Wednesday, February 15, 2012 12:08 AM > > I try to use generateDS to correlate a xml input into python > objects and/or django models. > > It seams, the gererateDS cannot handle the elemet type xsd:hexBinary. >
[Example snipped] > > The class xsd_hexBinary is missing in the generated code. > Do you have any hint or work arround to handle this element by generateDS? peter - Thanks for alerting me about this. I'm attaching (in a separate email) a patched version of generateDS.py that will handle this case. (You likely only need to replace generateDS.py, although I'm including the entire .tar.gz file.) Basically, it treats something of type hexBinary in the same way as base64Binary, which means that it's processed just like a plain string. So, if you want to convert it to and from binary, you will have to do that yourself. If you do need to convert it, you may want to look at methods gds_validate_string and gds_format_string in class GeneratedsSuper, which is generated near the top of modules generated by generateDS.py. Then see the following section of the documentation for hints about how to use your own version of GeneratedsSuper without modifying the new code each time you generate it: http://www.rexx.com/~dkuhlman/generateDS.html#overridable-methods Hope this helps. Let me know if you try it and have problems with it. Because it's a small patch and because I have not heard of others who have this need, I'm likely to wait a bit before uploading a version containing this patch. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users