C# Class BExIS.Xml.Helpers.XExtentsions

Afficher le fichier Open project: BEXIS2/Core Class Usage Examples

Méthodes publiques

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

Method Details

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

GetAbsoluteXPathWithIndex() public static méthode

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