| 308 | } |
| 309 | |
| 310 | string XmlTree::getPath( char separator ) const |
| 311 | { |
| 312 | string result; |
| 313 | |
| 314 | const XmlTree *node = this; |
| 315 | while( node ) { |
| 316 | string nodeName = node->getTag(); |
| 317 | if( node != this ) |
| 318 | nodeName += separator; |
| 319 | result = nodeName + result; |
| 320 | node = node->mParent; |
| 321 | } |
| 322 | |
| 323 | return result; |
| 324 | } |
| 325 | |
| 326 | void XmlTree::push_back( const XmlTree &newChild ) |
| 327 | { |
no outgoing calls