I'm using a Perl 5.8.8 build on a Windows Server platform and I need to work with XML files.
Is there a preferred module for use when working with XML in Perl? I'm new to XML & I'm just looking for directions to XML modules to look at so I don't waste too much time going down the wrong path while wading through all the available XML modules on CPAN. I have a few example programs using XML::Simple (v2.14)for parsing out a couple of config values from some small XML files and returning them to the caller, but I'm going to need to programmatically edit more complex XML files that are considerably larger & save the results. With the potential of the files being edited being huge. But maybe 10,000 to 15,000 data points to update being average. I'm going to see multiple entries such as: <tag22 rt="abcd" seg="22" opt="xyz" /> .... <tag22 rt="masd" seg="14" opt="zxy" /> So I'll load the XML file into memory, validate it's well formed XML, and then locate every occurrence of tag22 to update it's optional "seg" attribute. Making sure I only update a specific tag22 one time! Once I've updated them all, I'll write the updated XML document back to disk. So does this sound like something XML::Simple can handle? Or should I be looking at another XML module? Are there tips to follow for making sure the generated file isn't to hard to look at by hand? (The by hand part isn't a requirement, but past experience suggests taking an eyeball to something with your favorite editor can help a lot during troubleshooting.) Curtis _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
