Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
Process xml reading it from a file

        def process_file(filename, obj, clean=True):
    "Process xml reading it from a file"
    doc = xml.dom.minidom.parse(filename)
    process(doc, obj, clean)
    return doc
        


src/p/y/pyroutes-HEAD/pyroutes/template/__init__.py   pyroutes(Download)
        if self.base_template:
            doc = xmltemplate.process_file(
                os.path.join(self.template_dir, template), data, False)
            data[self.inclusion_param] = doc
            master = xmltemplate.process_file(
                os.path.join(self.template_dir, self.base_template), data)
        else:
            master = xmltemplate.process_file(
                os.path.join(self.template_dir, template), data)

src/p/y/pyroutes-0.5.0/pyroutes/template/__init__.py   pyroutes(Download)
        if self.base_template:
            doc = xmltemplate.process_file(
                os.path.join(self.template_dir, template), data, False)
            data[self.inclusion_param] = doc
            master = xmltemplate.process_file(
                os.path.join(self.template_dir, self.base_template), data)
        else:
            master = xmltemplate.process_file(
                os.path.join(self.template_dir, template), data)