C# Класс Jstor.XPathExtensions

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

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

Метод Описание
Evaluate ( this doc, string expression ) : object
GetAbsoluteXPath ( this element ) : string

Get the absolute XPath to a given XElement, including the namespace. (e.g. "/a:people/b:person[6]/c:name[1]/d:last[1]").

IndexPosition ( this element ) : int

Get the index of the given XElement relative to its siblings with identical names. If the given element is the root, -1 is returned.

SelectMultipleResults ( this doc, string expression ) : IEnumerable

Описание методов

Evaluate() публичный статический Метод

public static Evaluate ( this doc, string expression ) : object
doc this
expression string
Результат object

GetAbsoluteXPath() публичный статический Метод

Get the absolute XPath to a given XElement, including the namespace. (e.g. "/a:people/b:person[6]/c:name[1]/d:last[1]").
public static GetAbsoluteXPath ( this element ) : string
element this
Результат string

IndexPosition() публичный статический Метод

Get the index of the given XElement relative to its siblings with identical names. If the given element is the root, -1 is returned.
public static IndexPosition ( this element ) : int
element this /// The element to get the index of. ///
Результат int

SelectMultipleResults() публичный статический Метод

public static SelectMultipleResults ( this doc, string expression ) : IEnumerable
doc this
expression string
Результат IEnumerable