XML Element class.
More...
#include <xmldocument.h>
UaXmlElement::UaXmlElement |
( |
| ) |
|
Constructs an XML element object with default settings.
UaXmlElement::~UaXmlElement |
( |
| ) |
|
Destroys the XML element object.
void UaXmlElement::getAttributeValue |
( |
const char * |
pchAttributeName, |
|
|
UaXmlValue & |
value |
|
) |
| |
Gets 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 the 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 | ) |
|
Gets 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 & |
uaXmlElement | ) |
|
Gets the current XML element working node as UaXmlElement.
- Parameters
-
int UaXmlElement::getFirstChild |
( |
| ) |
|
Sets the 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 the 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 |
( |
| ) |
|
Gets the name of the current XML element working node.
- Returns
- The name if successful, NULL if method fails.
int UaXmlElement::getParentNode |
( |
| ) |
|
Sets the 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 the current XML element working node to the root node passed during initialization.
- Returns
- 0 for success.
int UaXmlElement::setContent |
( |
char * |
pchSimpleContent | ) |
|
Sets 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:
- D:/work/uasdkcpp/src/uabase/xmlparser/xmldocument.h
- D:/work/uasdkcpp/src/uabase/xmlparser/xmldocument.cpp