C# Class ReadingAge.app.TransformXmlFile

Umbraco package action that transforms an XML file.
Inheritance: IPackageAction
Datei anzeigen Open project: rhythmagency/reading-age

Public Methods

Method Description
Alias ( ) : string

The alias of this package action.

Execute ( string packageName, XmlNode xmlData ) : bool

Transforms the XML file with the install transformation.

SampleXml ( ) : XmlNode

Sample XML that can be used to invoke this package action.

Undo ( string packageName, XmlNode xmlData ) : bool

Transforms the XML file with the uninstall transformation.

Private Methods

Method Description
GetAttributeValue ( XmlNode xmlData, string attributeName ) : string

Gets the value of the specified attribute from the specified XML.

Transform ( XmlNode xmlData, string fileToTransform, bool install ) : void

Transforms the XML file.

Method Details

Alias() public method

The alias of this package action.
public Alias ( ) : string
return string

Execute() public method

Transforms the XML file with the install transformation.
public Execute ( string packageName, XmlNode xmlData ) : bool
packageName string /// The package name. ///
xmlData System.Xml.XmlNode /// The package action XML data. ///
return bool

SampleXml() public method

Sample XML that can be used to invoke this package action.
public SampleXml ( ) : XmlNode
return System.Xml.XmlNode

Undo() public method

Transforms the XML file with the uninstall transformation.
public Undo ( string packageName, XmlNode xmlData ) : bool
packageName string /// The package name. ///
xmlData System.Xml.XmlNode /// The package action XML data. ///
return bool