C# 클래스 CCNet.Build.Confluence.PageDocumentExtensions

Helper methods to work with Confluence XML document.
파일 보기 프로젝트 열기: shuruev/CCNet.Extensions

공개 메소드들

메소드 설명
RemoveIfExists ( this attribute ) : void

Removes specified attribute, allows null to be passed.

XAttribute ( this element, string name ) : System.Xml.Linq.XAttribute

Finds attribute by name, using internal namespace prefixes.

XElement ( this element, string xpath ) : System.Xml.Linq.XElement

Executes XPath query over existing project document and namespace manager.

XElements ( this element, string xpath ) : IEnumerable

Executes XPath query over existing project document and namespace manager.

XValue ( this element, string value ) : System.Xml.Linq.XElement

Encodes internal HTML entities in specified value.

XValue ( this element ) : string

Decodes specified value from internal HTML entities.

메소드 상세

RemoveIfExists() 공개 정적인 메소드

Removes specified attribute, allows null to be passed.
public static RemoveIfExists ( this attribute ) : void
attribute this
리턴 void

XAttribute() 공개 정적인 메소드

Finds attribute by name, using internal namespace prefixes.
public static XAttribute ( this element, string name ) : System.Xml.Linq.XAttribute
element this
name string
리턴 System.Xml.Linq.XAttribute

XElement() 공개 정적인 메소드

Executes XPath query over existing project document and namespace manager.
public static XElement ( this element, string xpath ) : System.Xml.Linq.XElement
element this
xpath string
리턴 System.Xml.Linq.XElement

XElements() 공개 정적인 메소드

Executes XPath query over existing project document and namespace manager.
public static XElements ( this element, string xpath ) : IEnumerable
element this
xpath string
리턴 IEnumerable

XValue() 공개 정적인 메소드

Encodes internal HTML entities in specified value.
public static XValue ( this element, string value ) : System.Xml.Linq.XElement
element this
value string
리턴 System.Xml.Linq.XElement

XValue() 공개 정적인 메소드

Decodes specified value from internal HTML entities.
public static XValue ( this element ) : string
element this
리턴 string