C# Class SIM.XmlDocumentEx

Inheritance: System.Xml.XmlDocument
Exibir arquivo Open project: Sitecore/Sitecore-Instance-Manager Class Usage Examples

Public Methods

Method 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

Method 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 method

public GetElementAttributeValue ( string xpath, string attributeName ) : string
xpath string
attributeName string
return string

Load() public final method

public final Load ( [ filename ) : void
filename [
return void

Merge() public method

public Merge ( XmlDocument target ) : XmlDocumentEx
target XmlDocument
return XmlDocumentEx

Normalize() public static method

public static Normalize ( string xml ) : string
xml string
return string

Save() public method

public Save ( ) : void
return void

SetElementAttributeValue() public method

public SetElementAttributeValue ( string xpath, string attributeName, string value ) : void
xpath string
attributeName string
value string
return void

SetElementValue() public method

public SetElementValue ( string xpath, string value ) : void
xpath string
value string
return void

ToPrettyXmlString() public method

public ToPrettyXmlString ( ) : string
return string

XmlDocumentEx() public method

public XmlDocumentEx ( ) : System
return System

XmlDocumentEx() public method

public XmlDocumentEx ( [ filePath ) : System
filePath [
return System