using XML::simple in shell scripting

CPAN provide xml::simple module which can be used to generate XML files.
can i use this module in shell scripting? how? plzz give me an example to generate xml file using this module . you can also use some other module..
BUT SHELL SCRIPTING SHOULD ONLY BE USED

CPAN provides perl modules; they cannot be used in shell scripts.

is there any other module provided by anyone which can be used to generate xml file using shell scripting...

Generating an XML file is easy. You don't need any special module or library for that.

Parsing an XML file is different. Take a look at William Park's bash extensions.

See: XMLStarlet Command Line XML Toolkit: Overview