I agree wholeheartedly with the previous comment on how to ask a question. However, what you are asking here is sort of interesting to me, so I want to ask some questions about your question, so to speak.
- The xml files are located in various directories of the program that generates them?
- When you refer to directory, are you referring to a file named 'directory.xml', or a directory that contains some otherwise named xml file(s)?
- Making a wild guess here: you want to take multiple xml files generated by a spreadsheet program and concatenate all the worksheets contained in each workbook of the original spreadsheet files into one workbook file?
Lets assume that last is true. I think perhaps XML::Twig might help you do what you want. On the other hand, it should not be too tough to simply open each xml file, grab everything between <worksheet> and the </workbook> and plop it in a new file either. But that depends on what you want to do, which you really do need to clarify...
Best of luck.. :-)
- ...the majority is always wrong, and always the last to know about it...
- The Spice must flow...
- ..by my will, and by will alone.. I set my mind in motion
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.