tags:

views:

51

answers:

3

Hello,

I have a file (a few GB), contains the data

 <doc>
     <a1>11111</a1>
     <b1>22222</b1>
     <c1>33333</c1>
 </doc>

I want to transform into another XML

 <doc2>
     <f1>11111</f1>
     <f2>33333</f2>
 </doc2>

Is it possible to do with custom written program?

Thanks,

+1  A: 

It would be a pretty straightforward XSLT, so you'd just need to use whatever normal way of applying XSLT exists in your language. The XSLT would be custom, though there isn't really a positive answer to "can I do this custom requirement without custom implementation?"

Jon Hanna
+1  A: 

Just use XSLT - it's what it's designed for. W3Schools do a nice tutorial on it.

I don't know what you mean by "without programming". Do you want a GUI tool? It would be much easier with XSLT.

Skilldrick
A: 

I would go with XSLT as well but also would throw StAX parser into play as it might give you better performance on large XML file.

iYasha