Commit 4970a291 authored by Jérome Perrin's avatar Jérome Perrin

improve XML


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3675 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ec783b49
......@@ -316,9 +316,11 @@ class PDFForm(File):
cells.appendChild(cell_node)
top_element.appendChild(cells)
pdf = newdoc.createTextNode(str(self.data))
top_element.appendChild(pdf)
content = newdoc.toprettyxml()
pdf_data = newdoc.createElement('pdf_data')
pdf_content = newdoc.createTextNode(str(self.data))
pdf_data.appendChild(pdf_content)
top_element.appendChild(pdf_data)
content = newdoc.toprettyxml(' ')
RESPONSE.setHeader('Content-Type', 'application/x-erp5-pdfform')
RESPONSE.setHeader('Content-Length', len(content))
RESPONSE.write(content)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment