C# Class Jstor.XPathExtensions

Afficher le fichier Open project: bibliopedia/bibliopedia

Méthodes publiques

Méthode Description
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

Method Details

Evaluate() public static méthode

public static Evaluate ( this doc, string expression ) : object
doc this
expression string
Résultat object

GetAbsoluteXPath() public static méthode

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
Résultat string

IndexPosition() public static méthode

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. ///
Résultat int

SelectMultipleResults() public static méthode

public static SelectMultipleResults ( this doc, string expression ) : IEnumerable
doc this
expression string
Résultat IEnumerable