Processing Two XML Files

Jürgen Exner jurgenex at hotmail.com
Wed Feb 12 01:44:20 EST 2003


Surajsub wrote:
> Hi,
> I am pretty much new to the xml world.I was wondering if there is a
> way to combine two xml files one which functions as a template and one
> which contains the values that is to be fed to the template to build a
> set of property files.
> Say file a is the template.xml that contains the following xml
> structure

XML::Parser will do 3/4 of the job.
The rest is just walking the parse trees and printing the desired result.
You may want to re-arrange the parse tree into a hash, where the keys are
the zone names and the values are reference to the inner parse tree for that
zone.

jue






More information about the Python-list mailing list