Find node by node id (position in document) Argument: nodeId
| Return Type | Function name | Arguments |
|---|---|---|
| hzXmlNode* | hzDocXml::GetNode | (uint32_t,) |
Declared in file: hzDocument.h
Defined in file : hzDocXml.cpp
Function Logic:
Function body:
hzXmlNode* hzDocXml::GetNode (uint32_t nodeId)
{
// Find node by node id (position in document)
//
// Argument: nodeId
//
// Returns: Node pointer or NULL
if (!nodeId)
return 0;
if (nodeId > m_arrNodes.Count())
return 0;
return m_arrNodes.InSitu(nodeId-1);
}