IXMLNode Class Referenceabstract
Symbolize a node in a XML tree structure. More...
Public Member Functions | |
virtual XML::boolean | addAttribute (const char *sAttributeName, const char *sAttributeValue)=0 |
Add the attribute sAttributeName with value sAttributeValue to the node. More... | |
virtual XML::boolean | hasAttribute (const char *sAttributeName) const =0 |
Indicate if an attribute exists or not. More... | |
virtual const char * | getAttribute (const char *sAttributeName) const =0 |
Return the value of an attribute. More... | |
virtual void | setPCData (const char *childData)=0 |
Set the PCDATA of the node. More... | |
virtual const char * | getPCData (void) const =0 |
Return the PCDATA of the node. More... | |
virtual void | addChild (XML::IXMLNode *ChildNode)=0 |
Add a node child of the. More... | |
virtual XML::IXMLNode * | getChild (const XML::uint32 iChildIndex) const =0 |
Return the ith child of the node. More... | |
virtual XML::IXMLNode * | getChildByName (const char *sName) const =0 |
Return the first child with the name sName. More... | |
virtual XML::uint32 | getChildCount (void) const =0 |
Return the amount of child the node has. More... | |
virtual char * | getXML (const XML::uint32 depth=0) const =0 |
Return a string which contains the XML of the node. The string is dynamically instantiate so it requires to be free. More... | |
Detailed Description
Symbolize a node in a XML tree structure.
- See Also
- XML
Member Function Documentation
|
pure virtual |
Add the attribute sAttributeName with value sAttributeValue to the node.
- Parameters
-
sAttributeName [in] : Name of the attribute sAttributeValue [in] : Value of the attribute
- Returns
- true in success, false otherwise
|
pure virtual |
Indicate if an attribute exists or not.
- Parameters
-
sAttributeName [in] : Name of the attribute
- Returns
- true if attribute exists, false otherwise
|
pure virtual |
Return the value of an attribute.
- Parameters
-
sAttributeName [in] : Name of the attribute
- Returns
- Value of the attribute
|
pure virtual |
Set the PCDATA of the node.
- Parameters
-
childData [in] : Value of the PCDATA
|
pure virtual |
Return the PCDATA of the node.
- Returns
- Value of PCDATA
|
pure virtual |
Add a node child of the.
- Parameters
-
ChildNode [in] : The Node that will became the new child
|
pure virtual |
Return the ith child of the node.
- Parameters
-
iChildIndex [in] : index of the child.
- Returns
- The ith child of the node.
|
pure virtual |
Return the first child with the name sName.
- Parameters
-
sName [in]] : Name of th child
- Returns
- The first child of the node which name is sName.
|
pure virtual |
Return the amount of child the node has.
- Returns
- Amount of child.
|
pure virtual |
Return a string which contains the XML of the node. The string is dynamically instantiate so it requires to be free.
- Parameters
-
depth [in] : Amount of indentation
- Returns
- XML string describing the node and its childs.
Generated on Tue Jun 26 2012 15:25:54 for Documentation by
