• Question

  • What language is recommended to do XML transformation? XSLT or  .NET(XMLWriter|XMLReader)?


    Monday, December 20, 2010 8:58 PM

All replies

  • Hello,


    XML Writer|XML Reader are used for writing and reading XML, but XSLT is used when you want to translate one XML file into another XML file.

    XSLT are usually rules for the transformation.

    XML1 ---> XSLT ----> XML2



    Asif Mushtaq

    Tuesday, December 21, 2010 6:13 AM
  • Depends on what sort of a transformation you want to do.

    If you wanted to create excel spreadsheets with formatting and named areas then xslt is just way better.

    If you wanted to use some xml to drive a process then .Net.

    With Linq and .Net you can transform XML from one shape to another pretty easily now.  Many developers don't know xslt at all so working in a familiar language is a plus.  Having said that, xslt is pretty easy to learn.

    Tuesday, December 21, 2010 10:54 AM
  • Tuesday, December 21, 2010 4:10 PM
  • I believe, one should use XSLT to perform basic operation like selection of specific xml nodes, iterating over them to display selected child element values with specific attributes, etc. The results could easily formatted and placed inside html/xhtml content with no addition effort of compiling, deployment, etc. Browsers recognize these formats and there is flexibility to use transformation logic platform free. Knowledge of XPath, HTML/XHTML and XML is not difficult to grasp or remember. 

    .NET will help you do more advanced manipulation of xml and resulting in a resulting xml tree which would be farmore difficult to do in xsl. So based on your need, you can choose any.




    Friday, December 24, 2010 2:31 PM