XML file using Perl

Hi All,

Does anyone know how to generate an XML file using perl scripting? Thanks in advance.

Regards,

P AGARWAL

perl -le 'print "<xml>here</xml>" >file.xml

Jokes aside, you need to be much more specific about what you want.

I need to generate an xml file using perl script. The content of the xml script should be as follows: These represent the header of the file.
<REQUEST Name="vinScheduled">
<EVENT_CODE Value="" />
<EVENT_NAME Value="" />
<CREATED_BY_ID Value="" />
<OCCURRENCE_DATE Value="" />
<REP_SYSTEM_DATE Value="" />
<REP_SYSTEM_DATE_TZ Value="" />
<SHIP_FROM_ID Value="" />
<SHIP_TO_ID Value="" />
<KEEP_IDS Value="" />
<ID Value="" />
<PRODUCTION_ORDER_NUMBER Value="" />
<SELLING_SOURCE Value="" />
<SHIP_TO_DEALER_CODE Value="" />
<ORDER_DEALER_CODE Value="" />
<DELIVERY_DATE Value="" />
<SHIP_DATE Value="' />
<ITEM_ID Value="" />
<SALES_ORGANIZATION_NO Value="" />
<IS_OWN_PROCESSOR Value="" />
<VIN_ATTRIBUTES>
<MODEL_YEAR Value="" />
</VIN_ATTRIBUTES>
</REQUEST>

Between the inverted commas, i'll be inserting some variable values.

If this is basically a static text, it's still more or less a single print.

$event_code="fnord";
$event_name="Beverly";
print <<HERE;
<REQUEST Name="vinScheduled">
<EVENT_CODE Value="$event_code" />
<EVENT_NAME Value="$event_name" />
:
</REQUEST>
HERE