]> git.sesse.net Git - xml-template/blob - python/xmltemplate.py
Add a skeleton xmltemplate.alternate.
[xml-template] / python / xmltemplate.py
1 #! /usr/bin/python
2 import xml.dom.minidom
3
4 def process_file(filename, obj, clean = False):
5         doc = xml.dom.minidom.parse(filename)
6         process(doc, obj, clean)
7         return doc
8
9 def process(node, obj, clean):
10         pass
11
12 def alternate(tag, array, *elems):
13         return array