Hi - >Could you give me a working perl code to modify the entries? ...
Sorry - that's not the way this list works :) How can you learn if we spoon-feed you? We are more than happy to give you suggestions and point you in productive directions. Then, you write the code. If you still have problems, then post snippets of your code and we will continue to help. OK, that said, here are my suggestions: Look at XML::Simple on CPAN. This module loads an XML file into a hash (you probably should use forcearray => 1). You may then modify that hash based upon user input. Finally, print the hash to your output. Aloha => Beau. -----Original Message----- From: Admin-Stress [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 12:09 AM To: perl Subject: modifying xml entry Hi, I have a XML file like this : <Config> <FTPServer> <Password>password</Password> <Username>dccftp</Username> <PortNumber>22</PortNumber> </FTPServer> <DCCBox> <IPAddress>127.0.0.1</IPAddress> <Serial>1234567890</Serial> </DCCBox> </Config> Could you give me a working perl code to modify the entries? user will input from keyboard : FTPServer Username = Password = Port Number = DCCBox IPAddress = Serial = After this, it will modify that config.xml entry. I tried to learn XML::Parser, but still I dont understand how to implement this. Thanks. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]