summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2016-01-08 08:41:38 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2016-01-08 08:41:38 -0800
commit85d8b225f2276333001dc0f96179bfef012277ae (patch)
treefe06de6006539df72944a874d67f358bd07df20f /src/pugixml.cpp
parent8b01f8923c047edf904c766c59ac359b807e7643 (diff)
Support XPath string value for parse_embed_pcdata
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r--src/pugixml.cpp4
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)