| 7230 | }; |
| 7231 | |
| 7232 | PUGI__FN const char_t* namespace_uri(const xml_node& node) |
| 7233 | { |
| 7234 | namespace_uri_predicate pred = node.name(); |
| 7235 | |
| 7236 | xml_node p = node; |
| 7237 | |
| 7238 | while (p) |
| 7239 | { |
| 7240 | xml_attribute a = p.find_attribute(pred); |
| 7241 | |
| 7242 | if (a) |
| 7243 | return a.value(); |
| 7244 | |
| 7245 | p = p.parent(); |
| 7246 | } |
| 7247 | |
| 7248 | return PUGIXML_TEXT(""); |
| 7249 | } |
| 7250 | |
| 7251 | PUGI__FN const char_t* namespace_uri(const xml_attribute& attr, const xml_node& parent) |
| 7252 | { |