C# 클래스 HandCoded.Xml.Browser

The Browser class tracks a position of interest within a DOM document which can be moved around as the document is explored.

During traversal the Browser automatically skips over any non-element nodes in the underlying XmlDocument.

파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp

보호된 프로퍼티들

프로퍼티 타입 설명
context System.Xml.XmlElement
document System.Xml.XmlDocument

공개 메소드들

메소드 설명
Browser ( XmlDocument document ) : System

Constructs a Browser that is attached to the root element of the XmlDocument indicated by document.

Browser ( XmlDocument document, XmlElement context ) : System

Constructs a Browser that is attached to a specific XmlElement of the given XmlDocument.

GetAttribute ( string name ) : string

Returns the value of the indicated attribute on the context element.

GetAttribute ( string name, string uri ) : string

Returns the value of the indicated attribute on the context element.

HasChildNodes ( ) : bool

Determines if the context XmlElement has at least one child element.

MoveToFirstChild ( ) : bool

Moves the context to the first child XmlElement if one exists.

MoveToLastChild ( ) : bool

Moves the context to the last child XmlElement if one exists.

MoveToNextSibling ( ) : bool

Moves the context to the next sibling XmlElement if one exists.

MoveToParent ( ) : bool

Moves the context to the parent XmlElement if one exists.

MoveToPreviousSibling ( ) : bool

Moves the context to the previous sibling XmlElement if one exists.

메소드 상세

Browser() 공개 메소드

Constructs a Browser that is attached to the root element of the XmlDocument indicated by document.
public Browser ( XmlDocument document ) : System
document System.Xml.XmlDocument The to explore.
리턴 System

Browser() 공개 메소드

Constructs a Browser that is attached to a specific XmlElement of the given XmlDocument.
public Browser ( XmlDocument document, XmlElement context ) : System
document System.Xml.XmlDocument The to explore.
context System.Xml.XmlElement The initial context .
리턴 System

GetAttribute() 공개 메소드

Returns the value of the indicated attribute on the context element.
public GetAttribute ( string name ) : string
name string The name of the required attribute.
리턴 string

GetAttribute() 공개 메소드

Returns the value of the indicated attribute on the context element.
public GetAttribute ( string name, string uri ) : string
name string The name of the required attribute.
uri string The attribute's owning namespace.
리턴 string

HasChildNodes() 공개 메소드

Determines if the context XmlElement has at least one child element.
public HasChildNodes ( ) : bool
리턴 bool

MoveToFirstChild() 공개 메소드

Moves the context to the first child XmlElement if one exists.
public MoveToFirstChild ( ) : bool
리턴 bool

MoveToLastChild() 공개 메소드

Moves the context to the last child XmlElement if one exists.
public MoveToLastChild ( ) : bool
리턴 bool

MoveToNextSibling() 공개 메소드

Moves the context to the next sibling XmlElement if one exists.
public MoveToNextSibling ( ) : bool
리턴 bool

MoveToParent() 공개 메소드

Moves the context to the parent XmlElement if one exists.
public MoveToParent ( ) : bool
리턴 bool

MoveToPreviousSibling() 공개 메소드

Moves the context to the previous sibling XmlElement if one exists.
public MoveToPreviousSibling ( ) : bool
리턴 bool

프로퍼티 상세

context 보호되어 있는 프로퍼티

The context XmlElement.
protected XmlElement,System.Xml context
리턴 System.Xml.XmlElement

document 보호되어 있는 프로퍼티

The underlying XmlDocument.
protected XmlDocument,System.Xml document
리턴 System.Xml.XmlDocument