4

Could anyone points out the docs which describes how the fixture can be done with XML?

Siva Arunachalam
  • 7,582
  • 15
  • 79
  • 132

2 Answers2

7

Do a manage.py dumpdata --format=xml --indent=4 and you will see the xml output, which you can also use for loaddata.

Izz ad-Din Ruhulessin
  • 5,955
  • 7
  • 28
  • 28
3

These two pages should help:

http://docs.djangoproject.com/en/1.2/howto/initial-data/#providing-initial-data-with-fixtures

and

http://docs.djangoproject.com/en/1.2/topics/serialization/

keybits
  • 4,383
  • 2
  • 20
  • 18
  • 1
    I agree, they should help, but all the examples there are dealing with json and yaml, no XML at all. I used the trick provided by Izz's answer to get a view of the xml format to use. – AJJ Sep 23 '11 at 16:32