> From: Brandon Pedersen > > Hi, > > I am wondering if it is possible to include an xsi:type attribute > for an element in the exported xml? So, right now it exports like: > > <Policy uuid="...."> > .... > </Policy> > > And I would like it to do > > <Policy uuid="..." xsi:type="AppControlPolicy"> > .... > </Policy > > the xsi:type attribute is just the name of the class. I was > thinking of just modifying something to add in > self.__class__.__name__ but was wondering if there is already some > way to tell it to do this.
Brandon - This sounds like a good idea to me. In fact, for derived element types, it seems like a deficiency if/that code generated by generateDS.py does not add the xsi:type attribute in an exported instance doc. I'm looking at http://www.w3.org/TR/xmlschema-0/#UseDerivInInstDocs Give me a little more time to study it. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users