Thanks for your reply Oliver, Your reply really helpful to me. On Wed, Feb 24, 2010 at 1:14 PM, Oliver Beattie <oli...@obeattie.com> wrote:
> I'm not entirely sure why you'd want to do this, but I'm sure you have > your reasons. Probably the best way would be to write your own > serializer, which subclasses Django's XML serializer (in > django.core.serializers.xml_serializer), and overrides the > start_serialization and end_serialization methods: > > > http://code.djangoproject.com/browser/django/trunk/django/core/serializers/xml_serializer.py > > …and then declare it in the SERIALIZATION_MODULES setting. > > On Feb 24, 7:00 am, chiranjeevi muttoju > <chiranjeevi.mutt...@gmail.com> wrote: > > Hi all, > > I want to convert the model object to xml data. i used the django > > serialization for that. then i'm getting the xml data as shown in bellow. > > But my aim to remove the "<django-objects version="1.0">" tag or > replacing > > that tag by other name. is there is any way to achieve that one. If > anybody > > know please help me. > > > > <?xml version="1.0" encoding="utf-8"?> > > <django-objects version="1.0"> > > <object pk="1" model="iw.user"> > > ----- > > ----- > > ----- > > </object> > > </django-objects> > > > > -- > > Thanks & Regards, > > Chiranjeevi.Muttoju > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Thanks & Regards, Chiranjeevi.Muttoju -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.