Expert Answer Center > Experts On Demand > View Answer
EMAIL THIS
Experts on Demand
  EXPERTS ON DEMAND HOME     POSE A QUESTION     VIEW ANSWERS     BROWSE BY TOPIC        RSS FEEDS  
When is it beneficial to use XSLT transformations rather than transforming an XML document object using custom iterations and modeling the data into a serializable model and vice versa? Can I have a set of custom serializable collection classes to generate an XML from a source of raw XML, or I can have an XSLT file to transform the raw XML into the desired schema? How do I decide when to use what? QUESTION POSED ON: 24 JAN 2005
QUESTION ANSWERED BY: Daniel Cazzulino The critical point here is how similar your input XML is to your model classes. If you control the former, then you don't need XSLT at all. If you don't, but you want to keep the model the way you want and not the way the XSD.EXE tool thinks you want it, based on the schema for the input document, then you have no choice but to use XSLT. Doing transformations by hand with custom iterations is a maintenance nightmare. If the XML is only going out from your model, you can also leverage XSLT to transform it to something your customer wants, while keeping your model clean.
HomeExperts on DemandIT Expert Webcast SeriesExpert KnowledgebaseSite Index
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts