Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: how to convert multiple xml files with different structure into CSV files

by RichardK (Priest)
on Jul 17, 2014 at 09:25 UTC ( #1093999=note: print w/ replies, xml ) Need Help??


in reply to how to convert multiple xml files with different structure into CSV files

So what do you expect the CSV to look like for the example XML you've shown?

If you can show us the output format you want, then hopefully someone will be able to suggest some approaches you could try.


Comment on Re: how to convert multiple xml files with different structure into CSV files
Re^2: how to convert multiple xml files with different structure into CSV files
by pavithravenky (Initiate) on Jul 17, 2014 at 09:47 UTC
    The Output of the XML should be as specified below for XML File 1:
    ID Name Company Join_Date DEP_ID DEP_Name Jobtitle + Jobdescr 1 xxx abc 1/1/2014 1 zzz xx desc1 1 xxx abc 1/1/2014 2 yyy yy desc2

      So where did all that extra junk come from? there are no elements / columns called '1 xxx abc' etc

      You are not going to get very far in solving this problem if you cannot clearly & logically state you requirements.

      Also, use code tags!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2014-12-23 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (133 votes), past polls