C# Class XmlTransformer.XmlTransformation

Inheritance: IServiceProvider
Mostra file Open project: micahlmartin/XmlTransformer Class Usage Examples

Public Methods

Method Description
AddTransformationService ( Type serviceType, object serviceInstance ) : void
Apply ( XmlDocument xmlTarget ) : bool
GetService ( Type serviceType ) : object
RemoveTransformationService ( Type serviceType ) : void
XmlTransformation ( string transformFile ) : System
XmlTransformation ( string transform, IXmlTransformationLogger logger ) : System
XmlTransformation ( string transform, bool isTransformAFile, IXmlTransformationLogger logger ) : System

Private Methods

Method Description
CreateElementContext ( XmlElementContext parentContext, XmlElement element ) : XmlElementContext
HandleElement ( XmlElementContext context ) : void
HandleException ( Exception ex ) : void
HandleException ( Exception ex, XmlNodeContext context ) : void
InitializeDocumentServices ( XmlDocument document ) : void
InitializeTransformationServices ( ) : void
OnAppliedTransform ( ) : void
OnApplyingTransform ( ) : void
PreprocessImportElement ( XmlElementContext context ) : void
PreprocessTransformDocument ( ) : void
ReleaseDocumentServices ( ) : void
TransformLoop ( XmlDocument xmlSource ) : void
TransformLoop ( XmlNodeContext parentContext ) : void
WrapException ( Exception ex, XmlNodeContext context ) : Exception
XmlTransformation ( ) : System

Method Details

AddTransformationService() public method

public AddTransformationService ( Type serviceType, object serviceInstance ) : void
serviceType System.Type
serviceInstance object
return void

Apply() public method

public Apply ( XmlDocument xmlTarget ) : bool
xmlTarget System.Xml.XmlDocument
return bool

GetService() public method

public GetService ( Type serviceType ) : object
serviceType System.Type
return object

RemoveTransformationService() public method

public RemoveTransformationService ( Type serviceType ) : void
serviceType System.Type
return void

XmlTransformation() public method

public XmlTransformation ( string transformFile ) : System
transformFile string
return System

XmlTransformation() public method

public XmlTransformation ( string transform, IXmlTransformationLogger logger ) : System
transform string
logger IXmlTransformationLogger
return System

XmlTransformation() public method

public XmlTransformation ( string transform, bool isTransformAFile, IXmlTransformationLogger logger ) : System
transform string
isTransformAFile bool
logger IXmlTransformationLogger
return System