C# Class Nxdb.Node.Element

Representation of an XML element node.
Inheritance: ContainerNode
Exibir arquivo Open project: daveaglick/Nxdb Class Usage Examples

Public Methods

Method Description
Attribute ( string name ) : Attribute

Gets the attribute with the specified name.

AttributeValue ( string name ) : string

Gets the value of the attribute with the specified name.

Element ( string name ) : System

Initializes a new instance of the Element class. Manually constructed nodes are immutable and are not added to the database.

InsertAttribute ( string name, string value ) : void

Inserts a new attribute with the specified name and value.

RemoveAll ( ) : void
RemoveAllAttributes ( ) : void

Removes all the attributes from this element. This can only be used on database nodes. If the node is invalid this does nothing.

RemoveAttribute ( string name ) : void

Removes an attribute with the specified name. This can only be used on database nodes. If the node is invalid this does nothing.

Protected Methods

Method Description
CreateXmlNode ( ) : XmlNode

Private Methods

Method Description
AttributeANode ( string name ) : ANode
Element ( ANode aNode, Database database ) : System

Method Details

Attribute() public method

Gets the attribute with the specified name.
public Attribute ( string name ) : Attribute
name string The name of the attribute to get.
return Attribute

AttributeValue() public method

Gets the value of the attribute with the specified name.
public AttributeValue ( string name ) : string
name string The name of the attribute to get a value for.
return string

CreateXmlNode() protected method

protected CreateXmlNode ( ) : XmlNode
return System.Xml.XmlNode

Element() public method

Initializes a new instance of the Element class. Manually constructed nodes are immutable and are not added to the database.
public Element ( string name ) : System
name string The name of the element.
return System

InsertAttribute() public method

Inserts a new attribute with the specified name and value.
public InsertAttribute ( string name, string value ) : void
name string The name of the new attribute.
value string The value of the new attribute.
return void

RemoveAll() public method

public RemoveAll ( ) : void
return void

RemoveAllAttributes() public method

Removes all the attributes from this element. This can only be used on database nodes. If the node is invalid this does nothing.
The node is not a database node.
public RemoveAllAttributes ( ) : void
return void

RemoveAttribute() public method

Removes an attribute with the specified name. This can only be used on database nodes. If the node is invalid this does nothing.
The node is not a database node.
public RemoveAttribute ( string name ) : void
name string The name of the attribute to remove.
return void