From 6706a3f8ba550701012bee86f6a1d60890437cdf Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sat, 8 May 2010 20:30:29 +0000 Subject: Deprecated all wildcard functions and parse_wnorm_attribute git-svn-id: http://pugixml.googlecode.com/svn/trunk@389 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/pugixml.cpp') diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 615d7d4..59ba5d7 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -3190,7 +3190,12 @@ namespace pugi const char_t* xml_node::child_value_w(const char_t* name) const { - return child_w(name).child_value(); + if (!_root) return PUGIXML_TEXT(""); + + for (xml_node_struct* i = _root->first_child; i; i = i->next_sibling) + if (i->name && impl::strequalwild(name, i->name)) return xml_node(i).child_value(); + + return PUGIXML_TEXT(""); } xml_attribute xml_node::first_attribute() const -- cgit v1.2.3