UaXmlElement Class Reference
[XML Library Classes]

#include <xmldocument.h>

List of all members.

Public Member Functions

 UaXmlElement ()
 ~UaXmlElement ()
void setNode (XML_Node xmlNode)
int getRootNode ()
int getFirstChild ()
int getChild (const char *pchName)
int getNextSibling ()
int getParentNode ()
const char * getNodeName ()
void getCurrentElement (UaXmlElement &xmlElement)
void getContent (UaXmlValue &value)
void getAttributeValue (const char *pchAttributeName, UaXmlValue &value)
int setContent (char *pchSimpleContent)

Detailed Description

XML Element class.


Constructor & Destructor Documentation

UaXmlElement::UaXmlElement (  )

Constructs a XML element object with default settings

UaXmlElement::~UaXmlElement (  )

Destroyes the XML element object


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]pchAttributeNameThe XML attribute name
[out]valueThe content of the XML attribute as UaXmlValue
int UaXmlElement::getChild ( const char *  pchName )

Sets current XML element working node to the child with the gieven name below the previous working node

Returns:
0 for sucess. -1 if method fails
Parameters:
[in]pchNameName of the child node
void UaXmlElement::getContent ( UaXmlValue value )

Get the content of the current XML element working node as UaXmlValue

Parameters:
[out]valueThe 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:
[out]xmlElementThe current working node as UaXmlElement
int UaXmlElement::getFirstChild (  )

Sets current XML element working node to the first child of the previous working node

Returns:
0 for sucess. -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 sucess. -1 if method fails
const char * UaXmlElement::getNodeName (  )

Get the name of the current XML element working node

Returns:
The name for sucess. NULL if method fails
int UaXmlElement::getParentNode (  )

Sets current XML element working node to the parent of the previous working node

Returns:
0 for sucess. -1 if method fails
int UaXmlElement::getRootNode (  )

Sets current XML element working node to root node passed during initialization

Returns:
0 for sucess
int UaXmlElement::setContent ( char *  pchSimpleContent )

Set the content of the current XML element working node as string

Parameters:
[in]pchSimpleContentThe new content for the XML element as string
void UaXmlElement::setNode ( XML_Node  xmlNode )

Internal method used by the UaXmlDocument to initialize the XML elemement with the node


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