C# Класс BExIS.Xml.Helpers.XExtentsions

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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]").

GetAbsoluteXPathWithIndex ( this element ) : string
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.

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

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

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

public static GetAbsoluteXPathWithIndex ( 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