Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Multiple XML files from Directory to One XML file using perl.

by choroba (Cardinal)
on Nov 18, 2011 at 14:52 UTC ( [id://938848]=note: print w/replies, xml ) Need Help??


in reply to Multiple XML files from Directory to One XML file using perl.

I usually use XML::XSH2 for XML manipulation. In this case, I'd use something like this:
$new := create new; for { glob "folder/*.xml" } { open (.) ; if $new/new { # for the first file, copy the root as well cp shiporder replace $new/new ; } else { cp shiporder/shipto append $new/shiporder ; } }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://938848]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found