Skip to content

Commit

Permalink
Use .pi() to write XML declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
filipsalo committed Apr 11, 2010
1 parent fc3e46f commit 665cbe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion streamxmlwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def _close_start(self):

def declaration(self):
"""Write an XML declaration."""
self.write("<?xml version='1.0' encoding='" + self.encoding + "'?>")
self.pi("xml", "version='1.0' encoding='" + self.encoding + "'")
xml = declaration

def comment(self, data):
Expand Down

0 comments on commit 665cbe9

Please sign in to comment.