Свойство | Тип | Описание | |
---|---|---|---|
ElementsFlags | |||
HtmlNodeTypeNameComment | string | ||
HtmlNodeTypeNameDocument | string | ||
HtmlNodeTypeNameText | string |
Свойство | Тип | Описание | |
---|---|---|---|
CloseNode | void | ||
GetId | string | ||
GetXmlComment | string | ||
HtmlNode | System | ||
HtmlNode | System | ||
SetId | void | ||
WriteAttribute | void | ||
WriteAttributes | void | ||
WriteAttributes | void |
Метод | Описание | |
---|---|---|
AppendChild ( |
Adds the specified node to the end of the list of children of this node.
|
|
AppendChildren ( HtmlAgilityPack.HtmlNodeCollection newChildren ) : void |
Adds the specified node to the end of the list of children of this node.
|
|
CanOverlapElement ( string name ) : bool |
Determines if an element node can be kept overlapped.
|
|
Clone ( ) : |
Creates a duplicate of the node
|
|
CloneNode ( bool deep ) : |
Creates a duplicate of the node.
|
|
CloneNode ( string newName ) : |
Creates a duplicate of the node and changes its name at the same time.
|
|
CloneNode ( string newName, bool deep ) : |
Creates a duplicate of the node and changes its name at the same time.
|
|
CopyFrom ( |
Creates a duplicate of the node and the subtree under it.
|
|
CopyFrom ( |
Creates a duplicate of the node.
|
|
CreateNavigator ( ) : |
Creates a new XPathNavigator object for navigating this HTML node.
|
|
CreateNode ( string html ) : |
Creates an HTML node from a string representing literal HTML.
|
|
GetAttributeValue ( string name, bool def ) : bool |
Helper method to get the value of an attribute of this node. If the attribute is not found, the default value will be returned.
|
|
GetAttributeValue ( string name, int def ) : int |
Helper method to get the value of an attribute of this node. If the attribute is not found, the default value will be returned.
|
|
GetAttributeValue ( string name, string def ) : string |
Helper method to get the value of an attribute of this node. If the attribute is not found, the default value will be returned.
|
|
InsertAfter ( |
Inserts the specified node immediately after the specified reference node.
|
|
InsertBefore ( |
Inserts the specified node immediately before the specified reference node.
|
|
IsCDataElement ( string name ) : bool |
Determines if an element node is a CDATA element node.
|
|
IsClosedElement ( string name ) : bool |
Determines if an element node is closed.
|
|
IsEmptyElement ( string name ) : bool |
Determines if an element node is defined as empty.
|
|
IsOverlappedClosingElement ( string text ) : bool |
Determines if a text corresponds to the closing tag of an node that can be kept overlapped.
|
|
PrependChild ( |
Adds the specified node to the beginning of the list of children of this node.
|
|
PrependChildren ( HtmlAgilityPack.HtmlNodeCollection newChildren ) : void |
Adds the specified node list to the beginning of the list of children of this node.
|
|
RemoveAll ( ) : void |
Removes all the children and/or attributes of the current node.
|
|
RemoveAllChildren ( ) : void |
Removes all the children of the current node.
|
|
RemoveChild ( |
Removes the specified child node.
|
|
RemoveChild ( |
Removes the specified child node.
|
|
ReplaceChild ( |
Replaces the child node oldChild with newChild node.
|
|
SelectNodes ( string xpath ) : HtmlAgilityPack.HtmlNodeCollection |
Selects a list of nodes matching the XPath expression.
|
|
SelectSingleNode ( string xpath ) : |
Selects the first XmlNode that matches the XPath expression.
|
|
SetAttributeValue ( string name, string value ) : HtmlAgilityPack.HtmlAttribute |
Helper method to set the value of an attribute of this node. If the attribute is not found, it will be created automatically.
|
|
WriteContentTo ( ) : string |
Saves all the children of the node to a string.
|
|
WriteContentTo ( |
Saves all the children of the node to the specified TextWriter.
|
|
WriteTo ( ) : string |
Saves the current node to a string.
|
|
WriteTo ( |
Saves the current node to the specified TextWriter.
|
|
WriteTo ( |
Saves the current node to the specified XmlWriter.
|
Метод | Описание | |
---|---|---|
CloseNode ( |
||
GetId ( ) : string | ||
GetXmlComment ( HtmlAgilityPack.HtmlCommentNode comment ) : string | ||
HtmlNode ( ) : System | ||
HtmlNode ( HtmlNodeType type, HtmlAgilityPack.HtmlDocument ownerdocument, int index ) : System | ||
SetId ( string id ) : void | ||
WriteAttribute ( |
||
WriteAttributes ( |
||
WriteAttributes ( |
public AppendChild ( |
||
newChild | The node to add. May not be null. | |
Результат |
public AppendChildren ( HtmlAgilityPack.HtmlNodeCollection newChildren ) : void | ||
newChildren | HtmlAgilityPack.HtmlNodeCollection | The node list to add. May not be null. |
Результат | void |
public static CanOverlapElement ( string name ) : bool | ||
name | string | The name of the element node to check. May not be null. |
Результат | bool |
public CloneNode ( bool deep ) : |
||
deep | bool | true to recursively clone the subtree under the specified node; false to clone only the node itself. |
Результат |
public CloneNode ( string newName ) : |
||
newName | string | The new name of the cloned node. May not be null. |
Результат |
public CloneNode ( string newName, bool deep ) : |
||
newName | string | The new name of the cloned node. May not be null. |
deep | bool | true to recursively clone the subtree under the specified node; false to clone only the node itself. |
Результат |
public CopyFrom ( |
||
node | The node to duplicate. May not be null. | |
Результат | void |
public CopyFrom ( |
||
node | The node to duplicate. May not be null. | |
deep | bool | true to recursively clone the subtree under the specified node, false to clone only the node itself. |
Результат | void |
public CreateNavigator ( ) : |
||
Результат |
public static CreateNode ( string html ) : |
||
html | string | The HTML text. |
Результат |
public GetAttributeValue ( string name, bool def ) : bool | ||
name | string | The name of the attribute to get. May not be null. |
def | bool | The default value to return if not found. |
Результат | bool |
public GetAttributeValue ( string name, int def ) : int | ||
name | string | The name of the attribute to get. May not be null. |
def | int | The default value to return if not found. |
Результат | int |
public GetAttributeValue ( string name, string def ) : string | ||
name | string | The name of the attribute to get. May not be null. |
def | string | The default value to return if not found. |
Результат | string |
public InsertAfter ( |
||
newChild | The node to insert. May not be null. | |
refChild | The node that is the reference node. The newNode is placed after the refNode. | |
Результат |
public InsertBefore ( |
||
newChild | The node to insert. May not be null. | |
refChild | The node that is the reference node. The newChild is placed before this node. | |
Результат |
public static IsCDataElement ( string name ) : bool | ||
name | string | The name of the element node to check. May not be null. |
Результат | bool |
public static IsClosedElement ( string name ) : bool | ||
name | string | The name of the element node to check. May not be null. |
Результат | bool |
public static IsEmptyElement ( string name ) : bool | ||
name | string | The name of the element node to check. May not be null. |
Результат | bool |
public static IsOverlappedClosingElement ( string text ) : bool | ||
text | string | The text to check. May not be null. |
Результат | bool |
public PrependChild ( |
||
newChild | The node to add. May not be null. | |
Результат |
public PrependChildren ( HtmlAgilityPack.HtmlNodeCollection newChildren ) : void | ||
newChildren | HtmlAgilityPack.HtmlNodeCollection | The node list to add. May not be null. |
Результат | void |
public RemoveChild ( |
||
oldChild | The node being removed. May not be null. | |
Результат |
public RemoveChild ( |
||
oldChild | The node being removed. May not be null. | |
keepGrandChildren | bool | true to keep grand children of the node, false otherwise. |
Результат |
public ReplaceChild ( |
||
newChild | The new node to put in the child list. | |
oldChild | The node being replaced in the list. | |
Результат |
public SelectNodes ( string xpath ) : HtmlAgilityPack.HtmlNodeCollection | ||
xpath | string | The XPath expression. |
Результат | HtmlAgilityPack.HtmlNodeCollection |
public SelectSingleNode ( string xpath ) : |
||
xpath | string | The XPath expression. May not be null. |
Результат |
public SetAttributeValue ( string name, string value ) : HtmlAgilityPack.HtmlAttribute | ||
name | string | The name of the attribute to set. May not be null. |
value | string | The value for the attribute. |
Результат | HtmlAgilityPack.HtmlAttribute |
public WriteContentTo ( |
||
outText | The TextWriter to which you want to save. | |
Результат | void |
public WriteTo ( |
||
outText | The TextWriter to which you want to save. | |
Результат | void |
public WriteTo ( |
||
writer | The XmlWriter to which you want to save. | |
Результат | void |
public static Hashtable,System.Collections ElementsFlags | ||
Результат |
public static string HtmlNodeTypeNameComment | ||
Результат | string |
public static string HtmlNodeTypeNameDocument | ||
Результат | string |