in reply to perl xml data copy

Please be more specific. How much data do you have? How complex is your tag structure? Are you using namespaces? More than one? Do you know the encoding of the source? Will it be the same in the target? Is performance important? Is memory usage important?

The answers to these questions (and more) will determine the best solution to your problem.

-sam

Replies are listed 'Best First'.
Re^2: perl xml data copy
by johnph (Initiate) on Nov 03, 2004 at 22:10 UTC
    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>
      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