C# Класс Palaso.Xml.XmlNodeExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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