C# 클래스 Palaso.Xml.XmlNodeExtensions

파일 보기 프로젝트 열기: sillsdev/FieldWorks

공개 메소드들

메소드 설명
GetOptionalStringAttribute ( this node, string attributeName, string defaultValue ) : string
GetStringAttribute ( this node, string attr ) : string
SafeSelectNodes ( this node, string path, XmlNamespaceManager namespaceManager ) : XmlNodeList

this is safe to use with foreach, unlike SelectNodes

SelectSingleNodeHonoringDefaultNS ( this node, string path ) : XmlNode

비공개 메소드들

메소드 설명
GetNsmgr ( XmlNode node, string prefix ) : XmlNamespaceManager
GetPrefixedPath ( string xPath, string prefix ) : string
LoadNsmgrForDoc ( XmlDocument doc ) : XmlNamespaceManager
SafeSelectNodes ( this node, string path ) : XmlNodeList
SelectTextPortion ( this node, string path ) : string

메소드 상세

GetOptionalStringAttribute() 공개 정적인 메소드

public static GetOptionalStringAttribute ( this node, string attributeName, string defaultValue ) : string
node this
attributeName string
defaultValue string
리턴 string

GetStringAttribute() 공개 정적인 메소드

public static GetStringAttribute ( this node, string attr ) : string
node this
attr string
리턴 string

SafeSelectNodes() 공개 정적인 메소드

this is safe to use with foreach, unlike SelectNodes
public static SafeSelectNodes ( this node, string path, XmlNamespaceManager namespaceManager ) : XmlNodeList
node this
path string
namespaceManager System.Xml.XmlNamespaceManager
리턴 System.Xml.XmlNodeList

SelectSingleNodeHonoringDefaultNS() 공개 정적인 메소드

public static SelectSingleNodeHonoringDefaultNS ( this node, string path ) : XmlNode
node this
path string
리턴 System.Xml.XmlNode