Revision 308
Added by Aaron Marcuse-Kubitza almost 13 years ago
bin/map | ||
---|---|---|
164 | 164 |
out_db.rollback() |
165 | 165 |
out_db.close() |
166 | 166 |
else: # output is XML |
167 |
def use_row(root): pass # TODO: implement this |
|
168 | 167 |
output = sys.stdout |
169 | 168 |
config = xml_dom.prettyxml_config |
170 |
doc1 = get_xml(use_row) |
|
171 |
doc1.write_opening(output, **config) |
|
172 |
for child in doc1.firstChild: child.writexml(output, indent=1, **config) |
|
173 |
doc1.write_closing(output, **config) |
|
169 |
doc = xml_dom.create_doc(out_label) |
|
170 |
doc.write_opening(output, **config) |
|
171 |
def use_row(root): root.writexml(output, indent=1, **config) |
|
172 |
map(use_row, get_xml(use_row).firstChild) |
|
173 |
doc.write_closing(output, **config) |
|
174 | 174 |
|
175 | 175 |
try: main() |
176 | 176 |
except Parser.SyntaxException, e: raise SystemExit(str(e)) |
Also available in: Unified diff
bin/map: Create separate document for printing XML opening and closing