datatracker/ietf/bin/redirect-dump
Bill Fenner c5f65ea060 "pretty-print" with sed instead of xmllint, because of a limitation
in python's xml deserializer (whitespace is significant when
recognizing <None/> nodes, so a general pretty-printer will cause
them to not be recognized.)

This changes empty elements to the more verbose <foo></foo> format,
but that is handled properly by the xml parser.
 - Legacy-Id: 382
2007-06-14 12:18:40 +00:00

7 lines
217 B
Bash
Executable file

#!/bin/sh
#python manage.py dumpdata --format=xml redirects | xmllint --format -
python manage.py dumpdata --format=xml redirects | sed -e 's/<\/*object/\
&/g' -e 's/<field/\
&/g' -e 's/<\/django-objects/\
&/g'