Extract some data from a lot of xml files

Posted by LifeH2O on Stack Overflow See other posts from Stack Overflow or by LifeH2O
Published on 2010-05-19T22:29:19Z Indexed on 2010/05/19 22:30 UTC
Read the original article Hit count: 275

Filed under:
|
|
|

I have cricket player profiles saved in the form of .xml files in a folder. each file has these tags in it

 <playerid>547</playerid>
 <majorteam>England</majorteam>
 <playername>Don</playername>

the playerid is same as in .xml (each file is of different size,1kb to 5kb). These are about 500 files. What i need is to extract the playername, majorteam, and playerid from all these files to a list. I will convert that list to XML later. If you know how can i do it directly to XML i will be very thankful.

© Stack Overflow or respective owner

Related posts about Xml

Related posts about data