Hi,
I am tinkering with awk to create some XML from a data file. The XML
generally looks like this:
<XML header>
<stuff>
<things>
<thing1>
<thing2>
.
.
.
</things>
</stuff>
I have got awk to produce one instance of the header <XML
header><stuff><things>, then it trawls the input file and produces lots of
instances of <thingX>. My question is, how to 'finish off' the output file
with the footer (/things></stuff> when the input file is done?
Sorry, I am a bit new with awk but I've managed a lot with some help from
Google, and I do find it a bit cryptic. I suppose I could do it in Perl,
but I've never tried awk before.
Thanks in advance,
Andy