I am using XML::Twig to parse an XML file. At the end of parsing/editing the XML string is stored as a scalar. I want to generate/save a new xml file. Is there any in-built function in XML::Twig which create the XML file using the content of the scalar? Any pointers will be much appreciated!
$Tree = new XML::Twig();
$Tree -> parsefile($TemplateName);
$Tree -> print;