Select the product you need help with
PRB: XSL Transformations with XmlDataDocument May Perform More Slowly Than XPathDocumentArticle ID: 318580 - View products that this article applies to. This article was previously published under Q318580 On This PageSYMPTOMS
XSL transformations (XSLT) with System.Xml.XmlDataDocument may run more slowly than XSLT with XPathDocument or XmlDocument.
CAUSEXmlDataDocument is primarily designed to act as the bridge between the DataSet and XML.
RESOLUTION
Run XSL transformations by using the XmlDocument or XPathDocument classes instead of XmlDataDocument. Microsoft recommends that you use XPathDocument, because it is highly optimized for XSL transformations. See the "More Information" section of this article for a code sample that uses the XPathDocument.
STATUS
This behavior is by design. The XmlDataDocument class is primarily designed for synchronizing XML with DataSet. Microsoft is looking into improving its performance for transformations in the next major release of Visual Studio .NET.
MORE INFORMATION
The following is a Visual Basic .NET code sample that shows you how to apply XSL transformations on a DataSet by using the XPathDocument class. The sample initially loads the data from the Customers table and the Order table of the Northwind database into to a DataSet, and then the DataSet is transformed with the XmlDataDocument and XPathDocument classes.
Steps to Reproduce the Behavior
REFERENCES
For more information, click the links below to view the Software Developer Kit (SDK) documentation and the Microsoft Knowledge Base articles:
313651
To view the Software Developer Kit (SDK) documentation, visit the following Microsoft Web site:
(http://support.microsoft.com/kb/313651/EN-US/
)
ROADMAP for XML in the .NET Framework
System.Xml Namespace
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemxml.asp)
PropertiesArticle ID: 318580 - Last Review: September 22, 2003 - Revision: 2.2
|


Back to the top








