C# 클래스 ReasonCodeExample.XPathInformation.XmlRepository

파일 보기 프로젝트 열기: uli-weltersbach/XPathInformation

공개 메소드들

메소드 설명
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