Last post Sep 12, 2016 09:02 AM by Yohann Lu
Sep 09, 2016 05:42 PM|krisrajz|LINK
I have an XML file with large volume of data and is taking time while applying XSLT.
Is there any way I can improve performance?!
Sep 12, 2016 09:02 AM|Yohann Lu|LINK
When you use XSLT to transform the content of an XML document into another XML document that has a different structure. You can consider the following ways to provide performance.
1: Use the XPathDocument
The XPathDocument class offers superior performance. Typically, transformations that use the XPathDocument class are 20 to 30 percent faster than the transformations that use the XmlDocument class once the documents have been loaded.
2: Consider Caching Compiled Style Sheets
XslTransform class can be cached in the ASP.NET application state.
The following article describes in detail how to provide performance: Chapter 9 — Improving XML Performance: