in reply to Re: perl xml data copy
in thread perl xml data copy

This is a example of some of data that needs to be copied <userdata> <aaa aaa.1.bbb="" aaa.1.ccc="" aaa.1.ddd="" aaa.1.eee="private" aaa.2.bbb="" aaa.2.ccc="" aaa.2.ddd="" aaa.2.eee="private" aaa.3.bbb="" aaa.3.ccc="" aaa.3.ddd="" aaa.3.eee="private" /> <user> <donot call.donot.per="0"/> <automail call.automail.1.enabled="0" call.automail.1.contact="" call.automail.2.enabled="0" call.automail.2.contact="" call.automail.3.enabled="0" call.automail.3.contact="" /> <DataRebuild call.DataRebuild.1.enabled="0" call.DataRebuild.2.enabled="0" call.DataRebuild.3.enabled="0" /> </user> <msg msg.bypass="0"> <msgAlert msg.Alert.1.subscribe="" msg.Alert.1.Block="registration" msg.Alert.1.callBack="" msg.Alert.2.subscribe="" msg.Alert.2.Block="disabled" msg.Alert.2.callBack="" msg.Alert.3.subscribe="" msg.Alert.3.Block="disabled" msg.Alert.3.callBack="" /> </msg> </userdata>

Replies are listed 'Best First'.
Re^3: perl xml data copy
by samtregar (Abbot) on Nov 04, 2004 at 06:02 UTC
    That doesn't answer any of my questions!

    -sam

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?> No Namespace are used in the files. Performance is not an issue. Memmory is not an issue. Target will be the same. Number of files to reproduce several hundred. But, speed is not an issue. File size approx 7k
        Alright. Given all this, go for the easiest solution, likely XML::Simple for reading and XML::Writer for writing if XML::Simple's writing routines aren't quite right. Since you've got so little data and not much complexity I'm sure you should be able to get the results you want with a minimum amount of effort.

        -sam