diff options
| author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-05-08 20:30:29 +0000 | 
|---|---|---|
| committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-05-08 20:30:29 +0000 | 
| commit | 6706a3f8ba550701012bee86f6a1d60890437cdf (patch) | |
| tree | fe20f69f221bca98949d159af24882bf01b92364 /src/pugixml.cpp | |
| parent | 1172d9bc4a1dbb2a16513bd918ade85486f54243 (diff) | |
Deprecated all wildcard functions and parse_wnorm_attribute
git-svn-id: http://pugixml.googlecode.com/svn/trunk@389 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.cpp')
| -rw-r--r-- | src/pugixml.cpp | 7 | 
1 files changed, 6 insertions, 1 deletions
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
  | 
