in reply to Re: new file per line output
in thread new file per line output
I haven't used XML::Twig for generating XML, and re-skimming its POD I'm not seeing what must be obvious. Can you show me how it might be used to provide XML matching what this creates?
print $fh <<END; <event> <stream-id>$streamid</stream-id> <event-name>$streamname</event-name> <primary-event> <delete-time>$time_t</delete-time> </primary-event> </event> END
It seems to me the OP has control over what he passes through to the XML output. Template systems (even as simple as a HERE doc) seem to fit the bill, but if there's an XML producer that would simplify this further, it would be interesting to see an example of how such a solution looks.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: new file per line output
by jellisii2 (Hermit) on Jan 02, 2014 at 13:16 UTC | |
by davido (Cardinal) on Jan 02, 2014 at 16:27 UTC |