C# 클래스 LitDev.LDxml

파일 보기 프로젝트 열기: litdev1/LitDev

공개 메소드들

메소드 설명
AddNode ( Primitive name, Primitive attributes, Primitive text, Primitive location ) : Primitive

Add a new node. The current node is unchanged, it is not updated to be the new node.

FirstChild ( ) : Primitive

Move the current node to the first child node if there is one.

FirstNode ( ) : Primitive

Set the current node to the first document node.

FromArray ( Primitive array ) : Primitive

Performs the inverse function of ToArray method, create an xml document from an array definition.

LastChild ( ) : Primitive

Move the current node to the last child node if there is one.

NextSibling ( ) : Primitive

Move the current node to the next sibling node if there is one.

Open ( Primitive fileName ) : Primitive

Open an existing xml file. This must be called before any other methods can be used.

Parent ( ) : Primitive

Move the current node to the parent node if there is one.

PreviousSibling ( ) : Primitive

Move the current node to the previous sibling node if there is one.

RemoveNode ( ) : Primitive

Remove the current node and all child nodes. The current node is reset to the previous sibling or parent node if no previous sibling exists.

Save ( Primitive fileName ) : Primitive

Save the current xml document to a file.

Switch ( Primitive docName ) : Primitive

Switch to another open xml document. The current node for all documents are preserved.

ToArray ( ) : Primitive

Convert the current xml document to a Small Basic array. The structure and depth of the array may be quite complex. Each node has optional arrays "Attributes", and "Children" or "Data". If there are are child nodes then they are indexed first by number to deliminate multiple children with the same name.

비공개 메소드들

메소드 설명
fromArray ( Primitive array ) : void
toArray ( XmlNode node ) : Primitive

메소드 상세

AddNode() 공개 정적인 메소드

Add a new node. The current node is unchanged, it is not updated to be the new node.
public static AddNode ( Primitive name, Primitive attributes, Primitive text, Primitive location ) : Primitive
name Primitive The new node element name.
attributes Primitive An array of attributes (values indexed by attribute name) for the new node or "".
text Primitive Inner text for the new node or "".
location Primitive Where the node is inserted. /// "Append" - insert at the end of current node's child nodes. /// "Prepend" - insert at the start of current node's child nodes. /// "Before" - insert before the current node. /// "After" - insert after the current node.
리턴 Primitive

FirstChild() 공개 정적인 메소드

Move the current node to the first child node if there is one.
public static FirstChild ( ) : Primitive
리턴 Primitive

FirstNode() 공개 정적인 메소드

Set the current node to the first document node.
public static FirstNode ( ) : Primitive
리턴 Primitive

FromArray() 공개 정적인 메소드

Performs the inverse function of ToArray method, create an xml document from an array definition.
public static FromArray ( Primitive array ) : Primitive
array Primitive A Small Basic array with the correct format.
리턴 Primitive

LastChild() 공개 정적인 메소드

Move the current node to the last child node if there is one.
public static LastChild ( ) : Primitive
리턴 Primitive

NextSibling() 공개 정적인 메소드

Move the current node to the next sibling node if there is one.
public static NextSibling ( ) : Primitive
리턴 Primitive

Open() 공개 정적인 메소드

Open an existing xml file. This must be called before any other methods can be used.
public static Open ( Primitive fileName ) : Primitive
fileName Primitive The full path to the xml file to open. /// If this is "", then a new empty xml document is created.
리턴 Primitive

Parent() 공개 정적인 메소드

Move the current node to the parent node if there is one.
public static Parent ( ) : Primitive
리턴 Primitive

PreviousSibling() 공개 정적인 메소드

Move the current node to the previous sibling node if there is one.
public static PreviousSibling ( ) : Primitive
리턴 Primitive

RemoveNode() 공개 정적인 메소드

Remove the current node and all child nodes. The current node is reset to the previous sibling or parent node if no previous sibling exists.
public static RemoveNode ( ) : Primitive
리턴 Primitive

Save() 공개 정적인 메소드

Save the current xml document to a file.
public static Save ( Primitive fileName ) : Primitive
fileName Primitive The full path to the file to write the xml.
리턴 Primitive

Switch() 공개 정적인 메소드

Switch to another open xml document. The current node for all documents are preserved.
public static Switch ( Primitive docName ) : Primitive
docName Primitive The name returned by Open method.
리턴 Primitive

ToArray() 공개 정적인 메소드

Convert the current xml document to a Small Basic array. The structure and depth of the array may be quite complex. Each node has optional arrays "Attributes", and "Children" or "Data". If there are are child nodes then they are indexed first by number to deliminate multiple children with the same name.
public static ToArray ( ) : Primitive
리턴 Primitive