in reply to Edit XML File in perl
Hi
Was just about to post a response when I saw your clarification re: keszler. However, I'm still not quite sure what you mean by an editor... Do you mean you want to open the file for a human to change, or you want to change the file without reading the whole thing into memory?
You can "edit" XML as a stream using some of the XML modules already mentioned by keszler. In particular I've used XML::Twig for large files. though I wouldn't say it was exactly fast. Depends how complex the changes are (you have to output to a tempfile and rename, as far as I know).
FalseVinylShrub
N.B. Please review and test code, and use at your own risk... If I answer a question, I would like to hear if and how you solved your problem.
|
|---|