C# Class Catrobat.IDE.Core.Utilities.Helpers.XPathHelper

Show file Open project: Catrobat/CatrobatForWindows Class Usage Examples

Public Methods

Method Description
GetElement ( System.Xml.Linq.XElement referenceElement, string xPath ) : System.Xml.Linq.XElement
GetXPath ( System.Xml.Linq.XElement fromElement, System.Xml.Linq.XElement toElement ) : string
XPathEquals ( string xPath1, string xPath2 ) : bool

Private Methods

Method Description
GetAbsolutePath ( System.Xml.Linq.XElement element ) : List
GetNameWithIndex ( System.Xml.Linq.XElement element ) : string

Method Details

GetElement() public static method

public static GetElement ( System.Xml.Linq.XElement referenceElement, string xPath ) : System.Xml.Linq.XElement
referenceElement System.Xml.Linq.XElement
xPath string
return System.Xml.Linq.XElement

GetXPath() public static method

public static GetXPath ( System.Xml.Linq.XElement fromElement, System.Xml.Linq.XElement toElement ) : string
fromElement System.Xml.Linq.XElement
toElement System.Xml.Linq.XElement
return string

XPathEquals() public static method

public static XPathEquals ( string xPath1, string xPath2 ) : bool
xPath1 string
xPath2 string
return bool