[Zope-CVS] CVS: ZopeProducts/RotterdamSprint - XmlObjectView.py:1.2
Joachim Werner
joe@iuveno-net.de
Wed, 4 Dec 2002 05:06:43 -0500
Update of /cvs-repository/ZopeProducts/RotterdamSprint
In directory cvs.zope.org:/tmp/cvs-serv15226
Modified Files:
XmlObjectView.py
Log Message:
Added XML declaration
=== ZopeProducts/RotterdamSprint/XmlObjectView.py 1.1 => 1.2 ===
--- ZopeProducts/RotterdamSprint/XmlObjectView.py:1.1 Wed Dec 4 04:44:14 2002
+++ ZopeProducts/RotterdamSprint/XmlObjectView.py Wed Dec 4 05:06:42 2002
@@ -16,5 +16,5 @@
result.append('<collection name="%s" length="%s" />' % (name, len(item)))
else:
result.append('<item name="%s" />' % name)
- return '<children> %s </children>' % ' '.join(result)
+ return u'<?xml version="1.0" ?><children> %s </children>' % ' '.join(result)