C# Class Palaso.Xml.XmlNodeExtensions

Exibir arquivo Open project: sillsdev/FieldWorks

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

GetOptionalStringAttribute() public static method

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

GetStringAttribute() public static method

public static GetStringAttribute ( this node, string attr ) : string
node this
attr string
return string

SafeSelectNodes() public static method

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
return System.Xml.XmlNodeList

SelectSingleNodeHonoringDefaultNS() public static method

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