#include <skNode.h>
Inheritance diagram for skNode:

Public Types | |
| enum | NodeType |
| This enumeration is used to distinguish between different types of node in a document. | |
Public Member Functions | |
| virtual | ~skNode () |
| Virtual destructor. | |
| virtual skString | getNodeValue () const |
| This method returns the "value" of a node. | |
| virtual void | setNodeValue (const skString &s) |
| This method sets the "value" of the node. | |
| virtual NodeType | getNodeType () const=0 |
| This abstract virtual function returns the type of this node. | |
| virtual skNode * | clone ()=0 |
| This abstract virtual function requests that the node create a copy of itself. | |
| virtual skString | toString () const=0 |
| This abstract virtual function writes a textual representation of this node and its children to a string. | |
| virtual void | write (skOutputDestination &out) const=0 |
| This abstract virtual function writes a textual representation of this node and its children to the given destination. | |
| void | setParent (skElement *parent) |
| Sets the owning element. | |
| skElement * | getParent () |
| Returns the owning element. | |
| virtual bool | equals (const skNode &other) const=0 |
| Does a deep comparison against another node. | |
Static Public Member Functions | |
| skString | escapeXMLDelimiters (const skString &text, bool include_quote) |
| This static method searches the given text for characters which must be "escaped" in an XML document. | |
Protected Member Functions | |
| skNode () | |
| Blank constructor. | |
Protected Attributes | |
| skElement * | m_Parent |
| Pointer to the parent Element. | |
It is part of the classes used in the Simkin XML DOM (Document Object Model)
|
|
This abstract virtual function requests that the node create a copy of itself. How this is done depends on the actual class of the node.
Implemented in skCDataNode, skElement, and skTextNode. |
|
||||||||||||
|
This static method searches the given text for characters which must be "escaped" in an XML document.
|
|
|
This abstract virtual function returns the type of this node. It will be one of the NodeType values
Implemented in skCDataNode, skElement, and skTextNode. |
|
|
This method returns the "value" of a node. Typically this would be the text for a text or cdata node.
Reimplemented in skTextNode. |
|
|
This method sets the "value" of the node. Typically this would be the text for a text or cdata node. For other nodes, this does nothing.
Reimplemented in skTextNode. |
|
|
This abstract virtual function writes a textual representation of this node and its children to a string.
Implemented in skElement, and skTextNode. |
|
|
This abstract virtual function writes a textual representation of this node and its children to the given destination.
Implemented in skCDataNode, skElement, and skTextNode. |
1.3