Transform xml file into an other xml format

cbadiiiiiii

New Member
I have one question regarding transforming xml files.I have an xml file (xml1) , that has this structure :\[code\]<Info> <cars> <car> <id>1</id> <brand>Pegeout</brand> </car> <car> <id>2</id> <brand>Volkwagen</brand> </car> </cars> <distances> <distance> <id_car>1</id_car> <distance_km>111</distance_km> </distance> <distance> <id_car>1</id_car> <distance_km>23</distance_km> </distance> </distances></Info>\[/code\]I undestand that I can transform one xml to an other using xslt .How can I generate an xsl stylesheet ? Exist a designer in C#?Can someone tell me how can I transform this xml file format to this format (xml2 ) using XSL stylesheets in C#:\[code\]<Info> <cars> <car> <id>1</id> <brand>Pegeout</brand> <distance> <distance_km>111</distance_km> <distance_km>23</distance_km> </distance> </car> <car> <id>2</id> <brand>Volkwagen</brand> </car> </cars></Info>\[/code\]
 
Top