XML Element class.
More...
#include <xmldocument.h>
Public Member Functions |
| UaXmlElement () |
| Constructs a XML element object with default settings.
|
| ~UaXmlElement () |
| Destroyes the XML element object.
|
void | setNode (void *xmlNode) |
| Internal method used by the UaXmlDocument to initialize the XML element with the node.
|
int | getRootNode () |
| Sets current XML element working node to root node passed during initialization.
|
int | getFirstChild () |
| Sets current XML element working node to the first child of the previous working node.
|
int | getChild (const char *pchName) |
| Sets current XML element working node to the child with the given name below the previous working node.
|
int | getNextSibling () |
| Sets current XML element working node to the next sibling of the previous working node.
|
int | getParentNode () |
| Sets current XML element working node to the parent of the previous working node.
|
const char * | getNodeName () |
| Get the name of the current XML element working node.
|
void | getCurrentElement (UaXmlElement &xmlElement) |
| Get the current XML element working node as UaXmlElement.
|
int | getChildElements (const char *pchName, std::list< UaXmlElement > &uaXmlElementList) |
| Returns a list of child XML elements with the given name.
|
void | getContent (UaXmlValue &value) |
| Get the content of the current XML element working node as UaXmlValue.
|
void | getAttributeValue (const char *pchAttributeName, UaXmlValue &value) |
| Get the content of the passed attribute name for the current XML element working node.
|
int | setContent (char *pchSimpleContent) |
| Set the content of the current XML element working node as string.
|
Detailed Description
Member Function Documentation
void UaXmlElement::getAttributeValue |
( |
const char * |
pchAttributeName, |
|
|
UaXmlValue & |
value |
|
) |
| |
Get the content of the passed attribute name for the current XML element working node.
- Parameters
-
[in] | pchAttributeName | The XML attribute name |
[out] | value | The content of the XML attribute as UaXmlValue |
int UaXmlElement::getChild |
( |
const char * |
pchName | ) |
|
Sets current XML element working node to the child with the given name below the previous working node.
- Returns
- 0 for success. -1 if method fails
- Parameters
-
[in] | pchName | Name of the child node |
int UaXmlElement::getChildElements |
( |
const char * |
pchName, |
|
|
std::list< UaXmlElement > & |
uaXmlElementList |
|
) |
| |
Returns a list of child XML elements with the given name.
- Returns
- 0 for success. -1 if method fails
- Parameters
-
[in] | pchName | Name of the child XML element nodes |
[out] | uaXmlElementList | The list of child XML element with the passed name as UaXmlElementList |
void UaXmlElement::getContent |
( |
UaXmlValue & |
value | ) |
|
Get the content of the current XML element working node as UaXmlValue.
- Parameters
-
[out] | value | The content of the current XML element working node as UaXmlValue |
void UaXmlElement::getCurrentElement |
( |
UaXmlElement & |
xmlElement | ) |
|
Get the current XML element working node as UaXmlElement.
- Parameters
-
int UaXmlElement::getFirstChild |
( |
| ) |
|
Sets current XML element working node to the first child of the previous working node.
- Returns
- 0 for success. -1 if method fails
int UaXmlElement::getNextSibling |
( |
| ) |
|
Sets current XML element working node to the next sibling of the previous working node.
- Returns
- 0 for success. -1 if method fails
const char * UaXmlElement::getNodeName |
( |
| ) |
|
Get the name of the current XML element working node.
- Returns
- The name for success. NULL if method fails
int UaXmlElement::getParentNode |
( |
| ) |
|
Sets current XML element working node to the parent of the previous working node.
- Returns
- 0 for success. -1 if method fails
int UaXmlElement::getRootNode |
( |
| ) |
|
Sets current XML element working node to root node passed during initialization.
- Returns
- 0 for success
int UaXmlElement::setContent |
( |
char * |
pchSimpleContent | ) |
|
Set the content of the current XML element working node as string.
- Parameters
-
[in] | pchSimpleContent | The new content for the XML element as string |
The documentation for this class was generated from the following files:
- /home/buildbot/work/uasdkcpp/src/uabase/xmlparser/xmldocument.h
- /home/buildbot/work/uasdkcpp/src/uabase/xmlparser/xmldocument.cpp