C# 클래스 Lucene.Net.QueryParsers.Xml.DOMUtils

Helper methods for parsing XML
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
GetAttribute ( XmlElement element, string attributeName, bool deflt ) : bool
GetAttribute ( XmlElement element, string attributeName, float deflt ) : float
GetAttribute ( XmlElement element, string attributeName, int deflt ) : int
GetAttribute ( XmlElement element, string attributeName, string deflt ) : string
GetAttributeOrFail ( XmlElement e, string name ) : string
GetAttributeWithInheritance ( XmlElement element, string attributeName ) : string

Returns an attribute value from this node, or first parent node with this attribute defined

GetAttributeWithInheritanceOrFail ( XmlElement e, string name ) : string
GetChildByTagName ( XmlElement e, string name ) : XmlElement

Convenience method where there is only one child XmlElement of a given name

GetChildByTagOrFail ( XmlElement e, string name ) : XmlElement
GetChildTextByTagName ( XmlElement e, string tagName ) : string

Convenience method where there is only one child XmlElement of a given name

GetFirstChildElement ( XmlElement element ) : XmlElement
GetFirstChildOrFail ( XmlElement e ) : XmlElement
GetNonBlankTextOrFail ( XmlElement e ) : string
GetText ( XmlNode e ) : string
InsertChild ( XmlElement parent, string tagName, string text ) : XmlElement

Convenience method to append a new child with text

LoadXML ( Stream input ) : XmlDocument

Helper method to parse an XML file into a DOM tree, given a Stream.

LoadXML ( TextReader input ) : XmlDocument

Helper method to parse an XML file into a DOM tree, given a TextReader.

LoadXML ( XmlReader input ) : XmlDocument

Helper method to parse an XML file into a DOM tree, given an XmlReader.

비공개 메소드들

메소드 설명
GetTextBuffer ( XmlNode e, StringBuilder sb ) : void

메소드 상세

GetAttribute() 공개 정적인 메소드

public static GetAttribute ( XmlElement element, string attributeName, bool deflt ) : bool
element System.Xml.XmlElement
attributeName string
deflt bool
리턴 bool

GetAttribute() 공개 정적인 메소드

public static GetAttribute ( XmlElement element, string attributeName, float deflt ) : float
element System.Xml.XmlElement
attributeName string
deflt float
리턴 float

GetAttribute() 공개 정적인 메소드

public static GetAttribute ( XmlElement element, string attributeName, int deflt ) : int
element System.Xml.XmlElement
attributeName string
deflt int
리턴 int

GetAttribute() 공개 정적인 메소드

public static GetAttribute ( XmlElement element, string attributeName, string deflt ) : string
element System.Xml.XmlElement
attributeName string
deflt string
리턴 string

GetAttributeOrFail() 공개 정적인 메소드

public static GetAttributeOrFail ( XmlElement e, string name ) : string
e System.Xml.XmlElement
name string
리턴 string

GetAttributeWithInheritance() 공개 정적인 메소드

Returns an attribute value from this node, or first parent node with this attribute defined
public static GetAttributeWithInheritance ( XmlElement element, string attributeName ) : string
element System.Xml.XmlElement
attributeName string
리턴 string

GetAttributeWithInheritanceOrFail() 공개 정적인 메소드

public static GetAttributeWithInheritanceOrFail ( XmlElement e, string name ) : string
e System.Xml.XmlElement
name string
리턴 string

GetChildByTagName() 공개 정적인 메소드

Convenience method where there is only one child XmlElement of a given name
public static GetChildByTagName ( XmlElement e, string name ) : XmlElement
e System.Xml.XmlElement
name string
리턴 System.Xml.XmlElement

GetChildByTagOrFail() 공개 정적인 메소드

public static GetChildByTagOrFail ( XmlElement e, string name ) : XmlElement
e System.Xml.XmlElement
name string
리턴 System.Xml.XmlElement

GetChildTextByTagName() 공개 정적인 메소드

Convenience method where there is only one child XmlElement of a given name
public static GetChildTextByTagName ( XmlElement e, string tagName ) : string
e System.Xml.XmlElement
tagName string
리턴 string

GetFirstChildElement() 공개 정적인 메소드

public static GetFirstChildElement ( XmlElement element ) : XmlElement
element System.Xml.XmlElement
리턴 System.Xml.XmlElement

GetFirstChildOrFail() 공개 정적인 메소드

public static GetFirstChildOrFail ( XmlElement e ) : XmlElement
e System.Xml.XmlElement
리턴 System.Xml.XmlElement

GetNonBlankTextOrFail() 공개 정적인 메소드

public static GetNonBlankTextOrFail ( XmlElement e ) : string
e System.Xml.XmlElement
리턴 string

GetText() 공개 정적인 메소드

public static GetText ( XmlNode e ) : string
e System.Xml.XmlNode
리턴 string

InsertChild() 공개 정적인 메소드

Convenience method to append a new child with text
public static InsertChild ( XmlElement parent, string tagName, string text ) : XmlElement
parent System.Xml.XmlElement
tagName string
text string
리턴 System.Xml.XmlElement

LoadXML() 공개 정적인 메소드

Helper method to parse an XML file into a DOM tree, given a Stream.
public static LoadXML ( Stream input ) : XmlDocument
input Stream reader of the XML file to be parsed
리턴 System.Xml.XmlDocument

LoadXML() 공개 정적인 메소드

Helper method to parse an XML file into a DOM tree, given a TextReader.
public static LoadXML ( TextReader input ) : XmlDocument
input TextReader reader of the XML file to be parsed
리턴 System.Xml.XmlDocument

LoadXML() 공개 정적인 메소드

Helper method to parse an XML file into a DOM tree, given an XmlReader.
public static LoadXML ( XmlReader input ) : XmlDocument
input XmlReader reader of the XML file to be parsed
리턴 System.Xml.XmlDocument