C# Класс ReasonCodeExample.XPathInformation.XmlRepository

Показать файл Открыть проект

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

Метод Описание
GetAttribute ( System.Xml.Linq.XElement element, int lineNumber, int linePosition ) : System.Xml.Linq.XAttribute
GetElement ( System.Xml.Linq.XElement rootElement, int lineNumber, int linePosition ) : System.Xml.Linq.XElement

Gets the XML node located at the specified line and position.

GetNodeCount ( XObject xml, string xpath ) : int?
GetRootElement ( ) : System.Xml.Linq.XElement
GetSelected ( ) : XObject
LoadXml ( string xml ) : void
SetSelected ( XObject obj ) : void

Приватные методы

Метод Описание
GetAttribute ( IEnumerable elements, int lineNumber, int linePosition ) : System.Xml.Linq.XAttribute
IsCorrectLine ( IXmlLineInfo lineInfo, int lineNumber ) : bool
IsCorrectPosition ( IXmlLineInfo lineInfo, int linePosition ) : bool

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

GetAttribute() публичный Метод

public GetAttribute ( System.Xml.Linq.XElement element, int lineNumber, int linePosition ) : System.Xml.Linq.XAttribute
element System.Xml.Linq.XElement
lineNumber int
linePosition int
Результат System.Xml.Linq.XAttribute

GetElement() публичный Метод

Gets the XML node located at the specified line and position.
public GetElement ( System.Xml.Linq.XElement rootElement, int lineNumber, int linePosition ) : System.Xml.Linq.XElement
rootElement System.Xml.Linq.XElement The root element.
lineNumber int One-based line number.
linePosition int /// One-based line position. The line position of an XML element is equal to the position /// of the first character in its name, not the position of the opening angle bracket. /// E.g. the XML fragment "<element />" has line position 2. ///
Результат System.Xml.Linq.XElement

GetNodeCount() публичный Метод

public GetNodeCount ( XObject xml, string xpath ) : int?
xml XObject
xpath string
Результат int?

GetRootElement() публичный Метод

public GetRootElement ( ) : System.Xml.Linq.XElement
Результат System.Xml.Linq.XElement

GetSelected() публичный Метод

public GetSelected ( ) : XObject
Результат XObject

LoadXml() публичный Метод

public LoadXml ( string xml ) : void
xml string
Результат void

SetSelected() публичный Метод

public SetSelected ( XObject obj ) : void
obj XObject
Результат void