Interface for XML nodes. More...
#include <sxml-i.h>
Public Member Functions | |
| void | ToString (IStringW *out) SCONST PURE |
| Converts the node to a string representation. | |
| LPVOID | GetPrivPtr () SCONST PURE |
| Gets the private pointer associated with the node. | |
| BOOL | Empty () SCONST PURE |
| Checks if the node is empty. | |
| const wchar_t * | Name () SCONST PURE |
| Gets the name of the node. | |
| const wchar_t * | Value () SCONST PURE |
| Gets the value of the node. | |
| const wchar_t * | Text () SCONST PURE |
| Gets the text content of the node. | |
| BOOL | set_userdata (int data) PURE |
| Sets user-defined data associated with the node. | |
| int | get_userdata () SCONST PURE |
| Gets user-defined data associated with the node. | |
| IXmlAttr * | Attribute (const wchar_t *name, BOOL bCaseSensitive) SCONST PURE |
| Gets an attribute by name. | |
| IXmlAttr * | FirstAttribute () SCONST PURE |
| Gets the first attribute in the attribute list. | |
| IXmlAttr * | LastAttribute () SCONST PURE |
| Gets the last attribute in the attribute list. | |
| IXmlNode * | Child (const wchar_t *name, BOOL bCaseSensitive) SCONST PURE |
| Gets a child node by name. | |
| IXmlNode * | FirstChild () SCONST PURE |
| Gets the first child node. | |
| IXmlNode * | LastChild () SCONST PURE |
| Gets the last child node. | |
| IXmlNode * | NextSibling () SCONST PURE |
| Gets the next sibling node in the children list of the parent node. | |
| IXmlNode * | PrevSibling () SCONST PURE |
| Gets the previous sibling node in the children list of the parent node. | |
| IXmlNode * | NextSibling2 (const wchar_t *name, BOOL bCaseSensitive) SCONST PURE |
| Gets the next sibling node with the specified name. | |
| IXmlNode * | PrevSibling2 (const wchar_t *name, BOOL bCaseSensitive) SCONST PURE |
| Gets the previous sibling node with the specified name. | |
| IXmlNode * | AppendChild (const wchar_t *name) PURE |
| Appends a child node with the specified name. | |
| IXmlNode * | PrependChild (const wchar_t *name) PURE |
| Prepends a child node with the specified name. | |
| IXmlNode * | AppendCopyNode (const IXmlNode *proto) PURE |
| Appends a copy of the specified node as a child. | |
| IXmlNode * | PrependCopyNode (const IXmlNode *proto) PURE |
| Prepends a copy of the specified node as a child. | |
| IXmlAttr * | AppendAttribute (const wchar_t *name) PURE |
| Appends an attribute with the specified name. | |
| IXmlAttr * | PrependAttribute (const wchar_t *name) PURE |
| Prepends an attribute with the specified name. | |
| IXmlAttr * | AppendCopyAttribute (const IXmlAttr *proto) PURE |
| Appends a copy of the specified attribute. | |
| IXmlAttr * | PrependCopyAttribute (const IXmlAttr *proto) PURE |
| Prepends a copy of the specified attribute. | |
| BOOL | RemoveAttribute (const wchar_t *name) PURE |
| Removes an attribute by name. | |
| BOOL | RemoveChild (const wchar_t *name) PURE |
| Removes a child node by name. | |
| BOOL | RemoveAllChilden () PURE |
| Removes all child nodes. | |
| IXmlAttr * IXmlNode::AppendAttribute | ( | const wchar_t * | name | ) |
Appends an attribute with the specified name.
| name | Name of the attribute. |
Implemented in SXmlNode.
| IXmlNode * IXmlNode::AppendChild | ( | const wchar_t * | name | ) |
Appends a child node with the specified name.
| name | Name of the child node. |
Implemented in SXmlNode.
Appends a copy of the specified attribute.
| proto | Pointer to the attribute to copy. |
Implemented in SXmlNode.
Appends a copy of the specified node as a child.
| proto | Pointer to the node to copy. |
Implemented in SXmlNode.
| IXmlAttr * IXmlNode::Attribute | ( | const wchar_t * | name, |
| BOOL | bCaseSensitive ) |
Gets an attribute by name.
| name | Name of the attribute. |
| bCaseSensitive | TRUE if the search is case-sensitive, FALSE otherwise. |
Implemented in SXmlNode.
| IXmlNode * IXmlNode::Child | ( | const wchar_t * | name, |
| BOOL | bCaseSensitive ) |
Gets a child node by name.
| name | Name of the child node. |
| bCaseSensitive | TRUE if the search is case-sensitive, FALSE otherwise. |
Implemented in SXmlNode.
| BOOL IXmlNode::Empty | ( | ) |
Checks if the node is empty.
Implemented in SXmlNode.
| IXmlAttr * IXmlNode::FirstAttribute | ( | ) |
Gets the first attribute in the attribute list.
Implemented in SXmlNode.
| IXmlNode * IXmlNode::FirstChild | ( | ) |
Gets the first child node.
Implemented in SXmlNode.
| int IXmlNode::get_userdata | ( | ) |
| LPVOID IXmlNode::GetPrivPtr | ( | ) |
Gets the private pointer associated with the node.
Implemented in SXmlNode.
| IXmlAttr * IXmlNode::LastAttribute | ( | ) |
Gets the last attribute in the attribute list.
Implemented in SXmlNode.
| IXmlNode * IXmlNode::LastChild | ( | ) |
Gets the last child node.
Implemented in SXmlNode.
| const wchar_t * IXmlNode::Name | ( | ) |
| IXmlNode * IXmlNode::NextSibling | ( | ) |
Gets the next sibling node in the children list of the parent node.
Implemented in SXmlNode.
| IXmlNode * IXmlNode::NextSibling2 | ( | const wchar_t * | name, |
| BOOL | bCaseSensitive ) |
Gets the next sibling node with the specified name.
| name | Name of the sibling node. |
| bCaseSensitive | TRUE if the search is case-sensitive, FALSE otherwise. |
Implemented in SXmlNode.
| IXmlAttr * IXmlNode::PrependAttribute | ( | const wchar_t * | name | ) |
Prepends an attribute with the specified name.
| name | Name of the attribute. |
Implemented in SXmlNode.
| IXmlNode * IXmlNode::PrependChild | ( | const wchar_t * | name | ) |
Prepends a child node with the specified name.
| name | Name of the child node. |
Implemented in SXmlNode.
Prepends a copy of the specified attribute.
| proto | Pointer to the attribute to copy. |
Implemented in SXmlNode.
Prepends a copy of the specified node as a child.
| proto | Pointer to the node to copy. |
Implemented in SXmlNode.
| IXmlNode * IXmlNode::PrevSibling | ( | ) |
Gets the previous sibling node in the children list of the parent node.
Implemented in SXmlNode.
| IXmlNode * IXmlNode::PrevSibling2 | ( | const wchar_t * | name, |
| BOOL | bCaseSensitive ) |
Gets the previous sibling node with the specified name.
| name | Name of the sibling node. |
| bCaseSensitive | TRUE if the search is case-sensitive, FALSE otherwise. |
Implemented in SXmlNode.
| BOOL IXmlNode::RemoveAllChilden | ( | ) |
Removes all child nodes.
Implemented in SXmlNode.
| BOOL IXmlNode::RemoveAttribute | ( | const wchar_t * | name | ) |
Removes an attribute by name.
| name | Name of the attribute to remove. |
Implemented in SXmlNode.
| BOOL IXmlNode::RemoveChild | ( | const wchar_t * | name | ) |
Removes a child node by name.
| name | Name of the child node to remove. |
Implemented in SXmlNode.
| BOOL IXmlNode::set_userdata | ( | int | data | ) |
Sets user-defined data associated with the node.
| data | User-defined data. |
Implemented in SXmlNode.
| const wchar_t * IXmlNode::Text | ( | ) |
| void IXmlNode::ToString | ( | IStringW * | out | ) |
Converts the node to a string representation.
| out | Pointer to the output string. |
Implemented in SXmlNode.
| const wchar_t * IXmlNode::Value | ( | ) |