Add xml declaration into toxml testcase.

This commit is contained in:
Martin v. Löwis 2001-02-06 01:16:48 +00:00
parent b417be2ad9
commit fe28ca09a5

View file

@ -272,7 +272,7 @@ def testAttributeRepr():
def testTextNodeRepr(): pass def testTextNodeRepr(): pass
def testWriteXML(): def testWriteXML():
str = '<a b="c"/>' str = '<?xml version="1.0" ?>\n<a b="c"/>'
dom = parseString(str) dom = parseString(str)
domstr = dom.toxml() domstr = dom.toxml()
dom.unlink() dom.unlink()