Using XSLT when only a negligible number of changes to the XML is required

Grierrefrem

New Member
I have an XML with a size ranging from 50k to about 300k, on which I need to make some transformations. The transformations include moving some elements to a different location and merging between the attributes of different elements. For all I know, ideally I should use XSLT to perform this transformation, but I'm afraid it will create me tons of unnecessary work constructing the output XSL, as the number of required changes is negligible compared to the amount of data that stays exactly the same. My questions:[*]Would you recommend trying to do this raw using just DOM abilities (I work in .net 3.5) and some XPATH? The down size is that if the number of required changes increases it may add unnecessary complexity to the code. [*]If you still recommend XSLT, is there some way in which I can just copy chunks from the input XML as are instead of recreating them from scratch?Thank you!
 
Back
Top