Writing attributes in canonical order for testing
Missing docstring for write() function
Missing docstring for canonical_order parameter
Test write() using DOM
Fix bug that crashes when there's non-ASCII chars
Test non-ASCII chars for attrs & contents as well
Python 2.6 has no fromstringlist() function
Encoder