| 5351 | |
| 5352 | #ifndef PUGIXML_NO_STL |
| 5353 | PUGI__FN string_t xml_node::path(char_t delimiter) const |
| 5354 | { |
| 5355 | xml_node cursor = *this; // Make a copy. |
| 5356 | |
| 5357 | string_t result = cursor.name(); |
| 5358 | |
| 5359 | while (cursor.parent()) |
| 5360 | { |
| 5361 | cursor = cursor.parent(); |
| 5362 | |
| 5363 | string_t temp = cursor.name(); |
| 5364 | temp += delimiter; |
| 5365 | temp += result; |
| 5366 | result.swap(temp); |
| 5367 | } |
| 5368 | |
| 5369 | return result; |
| 5370 | } |
| 5371 | #endif |
| 5372 | |
| 5373 | PUGI__FN xml_node xml_node::first_element_by_path(const char_t* path_, char_t delimiter) const |