C# Class TransformXMLSample, shared-source-cli-2.0

Demonstrates the use of the XslTranform class.
Mostrar archivo Open project: gbarnett/shared-source-cli-2.0

Public Methods

Method Description
Main ( string args ) : void

Main entry point for the sample.

ReadTransformWrite ( string document, string stylesheet ) : void

Demonstrates the XslTransform class using two different overloads. One returns an XmlReader containing the transform. The other stores the transform in an XmlTextWriter.

Private Methods

Method Description
Output ( XmlReader reader, string nodeType ) : void

Output the XML content to the console.

OutputXml ( XmlReader reader ) : void

Output the tranformed XML in annotated form to the console. Calls the Output method.

Method Details

Main() public static method

Main entry point for the sample.
public static Main ( string args ) : void
args string
return void

ReadTransformWrite() public static method

Demonstrates the XslTransform class using two different overloads. One returns an XmlReader containing the transform. The other stores the transform in an XmlTextWriter.
public static ReadTransformWrite ( string document, string stylesheet ) : void
document string
stylesheet string
return void