메소드 | 설명 | |
---|---|---|
FindAllChildElements ( this node ) : List |
Find the first child which is a html element (not text or script blocks)
|
|
FindFirstChildElement ( this node ) : |
Find the first child which is a html element (not text)
|
|
GetAttribute ( this node, string attributeName ) : string |
Get a node attribute
|
|
GetElementById ( this document, string id ) : |
Select all elements with the specified id
|
|
GetElementsByTagName ( this document, string tagName ) : HtmlAgilityPack.HtmlNodeCollection |
Select all elements with the specified tag
|
|
GetInnerText ( this node ) : string |
Get the innertext of the node, or an empty string if null
|
|
GetInnerTextTrim ( this node ) : string |
Get the innertext of the node, or an empty string if null. Result will be cleared from newlines and trimmed by spaces.
|
|
GetNodeByClass ( this node, string className, bool allowPartialMatch = false ) : |
Find the first descendent node which has the specified class
|
|
GetNodesByClass ( this node, string className, bool allowPartialMatch = false ) : List |
Find all nodes matching a class
|
|
NavigatePath ( this node, int childPositions ) : |
Navigate down a path using the position of child elements
|
public static FindAllChildElements ( this node ) : List |
||
node | this | |
리턴 | List |
public static FindFirstChildElement ( this node ) : |
||
node | this | |
리턴 |
public static GetAttribute ( this node, string attributeName ) : string | ||
node | this | |
attributeName | string | |
리턴 | string |
public static GetElementById ( this document, string id ) : |
||
document | this | |
id | string | |
리턴 |
public static GetElementsByTagName ( this document, string tagName ) : HtmlAgilityPack.HtmlNodeCollection | ||
document | this | |
tagName | string | |
리턴 | HtmlAgilityPack.HtmlNodeCollection |
public static GetInnerTextTrim ( this node ) : string | ||
node | this | |
리턴 | string |
public static GetNodeByClass ( this node, string className, bool allowPartialMatch = false ) : |
||
node | this | |
className | string | |
allowPartialMatch | bool | if |
리턴 |
public static GetNodesByClass ( this node, string className, bool allowPartialMatch = false ) : List |
||
node | this | |
className | string | |
allowPartialMatch | bool | if |
리턴 | List |
public static NavigatePath ( this node, int childPositions ) : |
||
node | this | |
childPositions | int | |
리턴 |