C# Class SIM.XmlDocumentEx

Inheritance: System.Xml.XmlDocument
Afficher le fichier Open project: Sitecore/Sitecore-Instance-Manager Class Usage Examples

Méthodes publiques

Méthode Description
GetElementAttributeValue ( string xpath, string attributeName ) : string
Load ( [ filename ) : void
Merge ( XmlDocument target ) : XmlDocumentEx
Normalize ( string xml ) : string
Save ( ) : void
SetElementAttributeValue ( string xpath, string attributeName, string value ) : void
SetElementValue ( string xpath, string value ) : void
ToPrettyXmlString ( ) : string
XmlDocumentEx ( ) : System
XmlDocumentEx ( [ filePath ) : System

Private Methods

Méthode Description
FixNotRootedXpathExpression ( string xpathExpr ) : string
LoadFile ( [ path ) : XmlDocumentEx
LoadFileSafe ( [ path ) : XmlDocumentEx
LoadXml ( string xml ) : XmlDocumentEx
Merge ( XmlElement source, XmlElement target, XmlElement elements = null ) : void

Method Details

GetElementAttributeValue() public méthode

public GetElementAttributeValue ( string xpath, string attributeName ) : string
xpath string
attributeName string
Résultat string

Load() public final méthode

public final Load ( [ filename ) : void
filename [
Résultat void

Merge() public méthode

public Merge ( XmlDocument target ) : XmlDocumentEx
target XmlDocument
Résultat XmlDocumentEx

Normalize() public static méthode

public static Normalize ( string xml ) : string
xml string
Résultat string

Save() public méthode

public Save ( ) : void
Résultat void

SetElementAttributeValue() public méthode

public SetElementAttributeValue ( string xpath, string attributeName, string value ) : void
xpath string
attributeName string
value string
Résultat void

SetElementValue() public méthode

public SetElementValue ( string xpath, string value ) : void
xpath string
value string
Résultat void

ToPrettyXmlString() public méthode

public ToPrettyXmlString ( ) : string
Résultat string

XmlDocumentEx() public méthode

public XmlDocumentEx ( ) : System
Résultat System

XmlDocumentEx() public méthode

public XmlDocumentEx ( [ filePath ) : System
filePath [
Résultat System