writing the xml DOM data into xml file with proper indentation in perl
I am loading the content from an xml file using DOM. I am inserting some elements into the DOM. And now I am writing the xml using perl XML::DOM::Node class's printToFile method. But i am not getting a properly structured xml output. Can anyone suggest me about the options available in DOM parser perl module to write a structured xml?