#include <skElement.h>
Inheritance diagram for skElement:
Public Methods | |
skElement (const skString& tagname) | |
This constructs a new element with the given tag. More... | |
void | appendChild (skNode * child) |
This adds a child to the list of children owned by this element. More... | |
void | removeAndDestroyChild (skNode * child) |
This removes a child from the list of children owned by this element. More... | |
void | setAttribute (const skString& name,const skString& value) |
This sets an attribute of this element. More... | |
skString | getAttribute (const skString& name) const |
This returns the value of an attribute. More... | |
skNodeList& | getChildNodes () |
This method returns the list of child nodes owned by this element. More... | |
skString | getTagName () const |
This returns the tag name for the element. More... | |
virtual NodeType | getNodeType () const |
this returns the type of this node. More... | |
virtual skNode* | clone () |
This method returns a new element with the same tag name, attributes and child list. More... | |
virtual void | write (ostream& out) const |
Writes this element, its attributes and children to the given stream. More... | |
Protected Methods | |
skAttribute* | findAttribute (const skString& name) const |
this method finds a named attribute. | |
Protected Attributes | |
skString | m_TagName |
this variable stores the tag name for this element. | |
skAttributeList | m_Attributes |
this holds the list of attributes for this element. | |
skNodeList | m_ChildNodes |
this holds the list of child nodes owned by this element. |
The class forms part of the Simkin DOM class library.
|
This constructs a new element with the given tag.
|
|
This adds a child to the list of children owned by this element.
|
|
This method returns a new element with the same tag name, attributes and child list. A deep copy is made.
Reimplemented from skNode. |
|
This returns the value of an attribute. If the attribute does not exist, a blank string is returned.
|
|
This method returns the list of child nodes owned by this element.
|
|
this returns the type of this node.
Reimplemented from skNode. |
|
This returns the tag name for the element.
|
|
This removes a child from the list of children owned by this element. The child is deleted by this function.
|
|
This sets an attribute of this element. The attribute is added, if not already present.
|
|
Writes this element, its attributes and children to the given stream.
Reimplemented from skNode. |