----------------------------------------------------------------------------- Convert top stack element into its next sibling element. -----------------------------------------------------------------------------
| 463 | // Convert top stack element into its next sibling element. |
| 464 | // ----------------------------------------------------------------------------- |
| 465 | bool SimXMLDocument::nextSiblingElement(const char* rName) |
| 466 | { |
| 467 | // Clear the current attribute pointer |
| 468 | m_CurrentAttribute = 0; |
| 469 | |
| 470 | // Attempt to find the next sibling element |
| 471 | if(m_paNode.empty()) |
| 472 | { |
| 473 | return false; |
| 474 | } |
| 475 | const S32 iLastElement = m_paNode.size() - 1; |
| 476 | TiXmlElement*& pElement = m_paNode[iLastElement]; |
| 477 | if(!pElement) |
| 478 | { |
| 479 | return false; |
| 480 | } |
| 481 | |
| 482 | pElement = pElement->NextSiblingElement(rName); |
| 483 | if(!pElement) |
| 484 | { |
| 485 | return false; |
| 486 | } |
| 487 | |
| 488 | return true; |
| 489 | } |
| 490 | |
| 491 | DefineEngineMethod( SimXMLDocument, nextSiblingElement, bool, ( const char* name ),, |
| 492 | "@brief Put the next sibling Element with the given name on the stack, making it the current one.\n\n" |
no test coverage detected