C# 클래스 erminas.SmartAPI.Utils.XmlUtil

파일 보기 프로젝트 열기: erminas/smartapi

공개 메소드들

메소드 설명
AddAttribute ( this xmlElement, string attributeName, string value ) : void

Creates an attribute via the owner document of xmlElement , sets its value and appends it to .

AddElement ( this node, string name ) : XmlElement

Creates an XmlElement and appends it as child to the XmlNode

GetAttributeValue ( this xmlElement, string attributeName ) : string

Gets the value of an attribute. If the attribute does not exists, null is returned.

GetBoolAttributeValue ( this xmlElement, string attributeName ) : bool?
GetDoubleAttributeValue ( this xmlElement, string attributeName ) : double?
GetGuid ( this xmlElement ) : System.Guid
GetGuid ( this xmlElement, String attributeName ) : System.Guid
GetIntAttributeValue ( this xmlElement, string attributeName ) : int?
GetName ( this xmlElement ) : string
GetOADate ( this element, string attributeName = "date" ) : DateTime?
GetSingleElement ( this doc, string tagName ) : XmlElement
IsAttributeSet ( this xmlElement, ISessionObject session, string attributeName ) : bool
IsContainingOk ( this xmlDoc ) : bool
NodeToString ( this xmlElement ) : string

Creates a string representation of an XmlNode

SetAttributeValue ( this xmlElement, string attributeName, string value ) : void

Sets an attribute to a value. If no fitting XmlAttribute exists, a new one is created/appended and its value set.

ToOADate ( this value ) : System.DateTime
TryGetGuid ( this xmlElement, System.Guid &guid ) : bool
TryGetGuid ( this xmlElement, string attributeName, System.Guid &guid ) : bool

메소드 상세

AddAttribute() 공개 정적인 메소드

Creates an attribute via the owner document of xmlElement , sets its value and appends it to .
public static AddAttribute ( this xmlElement, string attributeName, string value ) : void
xmlElement this The node, the attribute gets added to
attributeName string Name of the attribute
value string Value of the attribute
리턴 void

AddElement() 공개 정적인 메소드

Creates an XmlElement and appends it as child to the XmlNode
public static AddElement ( this node, string name ) : XmlElement
node this The parent node
name string Name of the newly created element
리턴 System.Xml.XmlElement

GetAttributeValue() 공개 정적인 메소드

Gets the value of an attribute. If the attribute does not exists, null is returned.
public static GetAttributeValue ( this xmlElement, string attributeName ) : string
xmlElement this The node
attributeName string Name of the attribute
리턴 string

GetBoolAttributeValue() 공개 정적인 메소드

public static GetBoolAttributeValue ( this xmlElement, string attributeName ) : bool?
xmlElement this
attributeName string
리턴 bool?

GetDoubleAttributeValue() 공개 정적인 메소드

public static GetDoubleAttributeValue ( this xmlElement, string attributeName ) : double?
xmlElement this
attributeName string
리턴 double?

GetGuid() 공개 정적인 메소드

public static GetGuid ( this xmlElement ) : System.Guid
xmlElement this
리턴 System.Guid

GetGuid() 공개 정적인 메소드

public static GetGuid ( this xmlElement, String attributeName ) : System.Guid
xmlElement this
attributeName String
리턴 System.Guid

GetIntAttributeValue() 공개 정적인 메소드

public static GetIntAttributeValue ( this xmlElement, string attributeName ) : int?
xmlElement this
attributeName string
리턴 int?

GetName() 공개 정적인 메소드

public static GetName ( this xmlElement ) : string
xmlElement this
리턴 string

GetOADate() 공개 정적인 메소드

public static GetOADate ( this element, string attributeName = "date" ) : DateTime?
element this
attributeName string
리턴 DateTime?

GetSingleElement() 공개 정적인 메소드

public static GetSingleElement ( this doc, string tagName ) : XmlElement
doc this
tagName string
리턴 System.Xml.XmlElement

IsAttributeSet() 공개 정적인 메소드

public static IsAttributeSet ( this xmlElement, ISessionObject session, string attributeName ) : bool
xmlElement this
session ISessionObject
attributeName string
리턴 bool

IsContainingOk() 공개 정적인 메소드

public static IsContainingOk ( this xmlDoc ) : bool
xmlDoc this
리턴 bool

NodeToString() 공개 정적인 메소드

Creates a string representation of an XmlNode
public static NodeToString ( this xmlElement ) : string
xmlElement this The node
리턴 string

SetAttributeValue() 공개 정적인 메소드

Sets an attribute to a value. If no fitting XmlAttribute exists, a new one is created/appended and its value set.
public static SetAttributeValue ( this xmlElement, string attributeName, string value ) : void
xmlElement this The node
attributeName string Name of the attribute
value string Value to set the attribute to
리턴 void

ToOADate() 공개 정적인 메소드

public static ToOADate ( this value ) : System.DateTime
value this
리턴 System.DateTime

TryGetGuid() 공개 정적인 메소드

public static TryGetGuid ( this xmlElement, System.Guid &guid ) : bool
xmlElement this
guid System.Guid
리턴 bool

TryGetGuid() 공개 정적인 메소드

public static TryGetGuid ( this xmlElement, string attributeName, System.Guid &guid ) : bool
xmlElement this
attributeName string
guid System.Guid
리턴 bool