Select the product you need help with
How to apply an XSL transformation to an XML document by using Visual C#Article ID: 307322 - View products that this article applies to. This article was previously published under Q307322 For a Microsoft Visual Basic .NET version of this
article, see
300929
(http://support.microsoft.com/kb/300929/EN-US/
)
. For a Microsoft Visual C++ .NET version of this
article, see
815653 This article refers to the following
Microsoft .NET Framework Class Library namespaces:
(http://support.microsoft.com/kb/815653/EN-US/
)
.
On This PageSummary This step-by-step article shows you how to apply an
Extensible Stylesheet Language (XSL) Transformation (XSLT) to an Extensible
Markup Language (XML) document by using the XslTransform class to create a new XML document. XSL is an XML-based language
that is designed to transform one XML document into another XML document or an
XML document into any other structured document. RequirementsThis list outlines the recommended hardware, software, network infrastructure, and service packs that you need:
Steps to build the sampleThis example uses two files that are named Books.xml and Books.xsl. You can create your own Books.xml and Books.xsl files or use the sample files that are included with the .NET Software Development Kit (SDK) QuickStarts. You must copy the Books.xml and Books.xsl files to the Bin\Debug folder that is located underneath the folder in which you create this project. These files can be found in the following folder:
..\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Samples\QuickStart\Howto\Samples\Xml\Transformxml\Cs
Complete code sampleReferences For more information about the XslTransform class with the XslTransform object, visit the following MSDN Web site: XslTransform Class For more information about XML in .NET, see the "XML in .NET:
.NET Framework XML Classes and C# Offer Simple, Scalable Data Manipulation"
article from MSDN Magazine. To do this, visit the following MSDN Web site:
(http://msdn.microsoft.com/en-us/library/system.xml.xsl.xsltransform.aspx)
http://msdn.microsoft.com/msdnmag/issues/01/01/xml/default.aspx
(http://msdn.microsoft.com/msdnmag/issues/01/01/xml/default.aspx)
Properties | Article Translations
|


Back to the top








