Commit 635c28a5 authored by Jim Fulton's avatar Jim Fulton

Added an enclosing tags and xml processing instr.

parent 7afeb3d5
......@@ -234,8 +234,11 @@ def xml(pos, oid, start, tname, user, t, p, first):
u=ppml.ToXMLUnpickler
write=sys.stdout.write
if first: write('<?xml version="1.0">\n<ZopeData>\n')
if pos is None:
write('</transaction>\n')
write('</ZopeData>\n')
return
if user or t or first:
......@@ -253,8 +256,11 @@ def xml(pos, oid, start, tname, user, t, p, first):
def xmls(pos, oid, start, tname, user, t, p, first):
write=sys.stdout.write
if first: write('<?xml version="1.0">\n<transactions>\n')
if pos is None:
write('</transaction>\n')
write('</transactioons>\n')
return
if user or t or first:
......
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