diff options
| author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2016-01-08 08:41:38 -0800 | 
|---|---|---|
| committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2016-01-08 08:41:38 -0800 | 
| commit | 85d8b225f2276333001dc0f96179bfef012277ae (patch) | |
| tree | fe06de6006539df72944a874d67f358bd07df20f /src | |
| parent | 8b01f8923c047edf904c766c59ac359b807e7643 (diff) | |
Support XPath string value for parse_embed_pcdata
Diffstat (limited to 'src')
| -rw-r--r-- | src/pugixml.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 8c5b9e1..c018359 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -7653,6 +7653,10 @@ PUGI__NS_BEGIN  			{  				xpath_string result; +				// element nodes can have value if parse_embed_pcdata was used +				if (n.value()[0]) +					result.append(xpath_string::from_const(n.value()), alloc); +  				xml_node cur = n.first_child();  				while (cur && cur != n) | 
