go ahead... be a heretic | |
PerlMonks |
Re: How to modify an XML file using XML::DOMby afoken (Chancellor) |
on Sep 28, 2016 at 05:54 UTC ( [id://1172801]=note: print w/replies, xml ) | Need Help?? |
You read the file into memory, and you modify the in-memory copy. Now, what is required to make the changes appear in the file? Hint: It's the same problem that every simple editor program has, and most editors are smart enough to ask you. Start the editor, open a text file, modify the copy in the editor's part of memory. Exit the editor. What does the editor ask you when attempting to exit? Second hint: Read the synopsis of XML::DOM. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|