UtilHtmlAgilityPackGetHtmlXPaths Method
Gets a collection containing all the X-Path expressions of an HtmlDocument document.
Namespace: DevCase.ThirdParty.HtmlAgilityPackAssembly: DevCase.net48.ThirdParty.HtmlAgilityPack (in DevCase.net48.ThirdParty.HtmlAgilityPack.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static ReadOnlyCollection<string> GetHtmlXPaths(
HtmlDocument document
)
Public Shared Function GetHtmlXPaths (
document As HtmlDocument
) As ReadOnlyCollection(Of String)
Dim document As HtmlDocument
Dim returnValue As ReadOnlyCollection(Of String)
returnValue = UtilHtmlAgilityPack.GetHtmlXPaths(document)
public:
static ReadOnlyCollection<String^>^ GetHtmlXPaths(
HtmlDocument^ document
)
static member GetHtmlXPaths :
document : HtmlDocument -> ReadOnlyCollection<string>
No code example is currently available or this language may not be supported.
- document HtmlDocument
-
The HtmlDocument document.
ReadOnlyCollectionString
A collection containing all the X-Path expressions of an
HtmlDocument document.
Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:
HtmlAgilityPack
This is a code example.
No code example is currently available or this language may not be supported.
Dim document As New HtmlAgilityPack.HtmlDocument
document.LoadHtml(File.ReadAllText("C:\File.html"))
Dim xpathList As ReadOnlyCollection(Of String) = GetHtmlXPaths(document)
ListBox1.Items.AddRange((From XPath As String In xpathList Select XPath).ToArray())
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.