C# 클래스 MahTweets.Core.Extensions.XmlExtensions

Helper Class for Manipulating XML
파일 보기 프로젝트 열기: nickhodge/MahTweets.LawrenceHargrave

공개 메소드들

메소드 설명
AddAttribute ( this ParentNode, string Name ) : XmlAttribute

Adds a new Attribute to the specified Node using the default namespace for the document.

AddChild ( this ParentNode, string Name ) : XmlNode

Adds a new Child Node to the specified Node using the default Namespace.

InnerTextOrDefault ( this node ) : string

Returns the InnerText of the Node. If the node InnerText is Null or Empty, it returns an empty string.

InnerTextOrDefault ( this node, string Default ) : string

Returns the InnerText of the Node. If the node InnerText is Null or Empty, it returns the string in Default;

IsNullOrEmpty ( this node ) : bool

Returns True if the Node itself is null, or the Node.InnerText (after trimming) is null or empty

메소드 상세

AddAttribute() 공개 정적인 메소드

Adds a new Attribute to the specified Node using the default namespace for the document.
public static AddAttribute ( this ParentNode, string Name ) : XmlAttribute
ParentNode this
Name string
리턴 System.Xml.XmlAttribute

AddChild() 공개 정적인 메소드

Adds a new Child Node to the specified Node using the default Namespace.
public static AddChild ( this ParentNode, string Name ) : XmlNode
ParentNode this
Name string
리턴 System.Xml.XmlNode

InnerTextOrDefault() 공개 정적인 메소드

Returns the InnerText of the Node. If the node InnerText is Null or Empty, it returns an empty string.
public static InnerTextOrDefault ( this node ) : string
node this
리턴 string

InnerTextOrDefault() 공개 정적인 메소드

Returns the InnerText of the Node. If the node InnerText is Null or Empty, it returns the string in Default;
public static InnerTextOrDefault ( this node, string Default ) : string
node this
Default string String to return if Node Inntertext
리턴 string

IsNullOrEmpty() 공개 정적인 메소드

Returns True if the Node itself is null, or the Node.InnerText (after trimming) is null or empty
public static IsNullOrEmpty ( this node ) : bool
node this
리턴 bool