| 5067 | |
| 5068 | #ifndef PUGIXML_NO_STL |
| 5069 | PUGI__FN string_t xml_node::path(char_t delimiter) const |
| 5070 | { |
| 5071 | xml_node cursor = *this; // Make a copy. |
| 5072 | |
| 5073 | string_t result = cursor.name(); |
| 5074 | |
| 5075 | while (cursor.parent()) |
| 5076 | { |
| 5077 | cursor = cursor.parent(); |
| 5078 | |
| 5079 | string_t temp = cursor.name(); |
| 5080 | temp += delimiter; |
| 5081 | temp += result; |
| 5082 | result.swap(temp); |
| 5083 | } |
| 5084 | |
| 5085 | return result; |
| 5086 | } |
| 5087 | #endif |
| 5088 | |
| 5089 | PUGI__FN xml_node xml_node::first_element_by_path(const char_t* path_, char_t delimiter) const |