How to pass the parameter in xml file in UNIX shell script?

Hi,
I have an XML file like the following...

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ONDEMAND_JOB VERSION="5.1" LOCALE="en_US">
<IMPORT_JOBSET TC_CONNECTION_NAME="default" ENVIRONMENT="PRD" USERNAME="Administrator" PASSWORD="AdminPassword" CALENDAR="Main Monthly Calendar" STOP_ON_ERROR_FLAG="true">
<ETL_START PERIOD="May 2008" />
</IMPORT_JOBSET>
</ONDEMAND_JOB>

My requirement is
1) Create the above XML file from Unix Shell Script.
2) Pass the CALENDAR value as parameter from unix script.

Hello Debalina,

Welcome to forums, please use the code tags for codes/commands/inputs provided by you in your posts as per forum rules.
Also could you please explain here you want to give a argument while running the script and create a xml file, I have few
questions here for same.

1st: Is there a list of arguments that you need to pass and create a seprate xml for each ?
2nd: Or is it same file you need to EDIT by replacing the CALENDER's value in current xml?

Kindly let us know the answers so that we can help you better, welcome again in forum and happy learning :b:

Thanks,
R. Singh

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.