manishrathi has asked for the wisdom of the Perl Monks concerning the following question:
<?xml version="1.0" encoding="UTF-8"?> <iw_pt name="content"><iw_perl><![CDATA[ $xmlFileName = "xml/dates.xml"; $CDATA_open='<!'.'[CDATA['; $CDATA_close=']]'.'>'; ]]> </iw_perl> <iw_ostream file_val="xmlFileName"> <?xml version="1.0" encoding="UTF-8"?> <eventslist> <events> <iw_iterate var='event1' list='dcr.event.EventContentContainer' it +eration='count'> <event id="{iw_value name='event1.id'}"> <active><iw_value name="$CDATA_open"/><iw_value name='event1.a +ctive'/><iw_value name="$CDATA_close"/></active> <eventdate><iw_value name="$CDATA_open"/><iw_value name='event +1.eventDate'/><iw_value name="$CDATA_close"/></eventdate> - - - -
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: printing xml declaration
by kcott (Archbishop) on Aug 30, 2011 at 12:49 UTC | |
|
Re: printing xml declaration
by Anonymous Monk on Aug 30, 2011 at 12:01 UTC |