diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/pugixml.cpp | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/src/pugixml.cpp b/src/pugixml.cpp index de87dcf..8c5b9e1 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -5464,6 +5464,10 @@ namespace pugi  			if (impl::is_text_node(i) && i->value)  				return i->value; +		// element nodes can have value if parse_embed_pcdata was used +		if (PUGI__NODETYPE(_root) == node_element && _root->value) +			return _root->value; +  		return PUGIXML_TEXT("");  	} @@ -6211,6 +6215,10 @@ namespace pugi  			if (impl::is_text_node(node))  				return node; +		// element nodes can have value if parse_embed_pcdata was used +		if (PUGI__NODETYPE(_root) == node_element && _root->value) +			return _root; +  		return 0;  	} | 
