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

Demonstrates the use of the XslTranform class.
Afficher le fichier Open project: gbarnett/shared-source-cli-2.0

Méthodes publiques

Méthode 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

Méthode 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 méthode

Main entry point for the sample.
public static Main ( string args ) : void
args string
Résultat void

ReadTransformWrite() public static méthode

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
Résultat void