C# Class Jstor.XPathExtensions

Mostrar archivo Open project: bibliopedia/bibliopedia

Public Methods

Method 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 method

public static Evaluate ( this doc, string expression ) : object
doc this
expression string
return object

GetAbsoluteXPath() public static method

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
return string

IndexPosition() public static method

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. ///
return int

SelectMultipleResults() public static method

public static SelectMultipleResults ( this doc, string expression ) : IEnumerable
doc this
expression string
return IEnumerable