in reply to Re: Multiple XML files from Directory to One XML file using perl.
in thread Multiple XML files from Directory to One XML file using perl.
Hi graff, Thanks for your reply I tried your code, It executing but it prints all xml files into one file, like this
<?xml version="1.0" encoding="UTF-8"?> <shiporder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <shipto> <name>johan</name> <address>Langgt 23</address> <------more info--------> </shipto> </shiporder> <?xml version="1.0" encoding="UTF-8"?> <shiporder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <shipto> <name>benny</name> <address>galve 23</address> <------more info--------> </shipto> </shiporder> <?xml version="1.0" encoding="UTF-8"?> <shiporder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <shipto> <name>kent</name> <address>vadrss 25</address> <------more info--------> </shipto> </shiporder>
How can I eliminate This tags
<?xml version="1.0" encoding="UTF-8"?> <shiporder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
It printing how many files is there that much times in final xml file.Can you tel me how could I eliminate this and print like this
<?xml version="1.0" encoding="UTF-8"?> <shiporder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <shipto> <name>johan</name> <address>Langgt 23</address> <------more info--------> </shipto> <shipto> <name>benny</name> <address>galve 23</address> <------more info--------> </shipto> <shipto> <name>kent</name> <address>vadrss 25</address> <------more info--------> </shipto> </shiporder>
because every XML file starts with same tag so we need to eliminate that one, final xml contains only one tag name.please can you help me
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Multiple XML files from Directory to One XML file using perl.
by graff (Chancellor) on Nov 21, 2011 at 11:58 UTC | |
by jyo (Initiate) on Nov 21, 2011 at 14:49 UTC | |
by graff (Chancellor) on Nov 27, 2011 at 04:24 UTC |