From 85d8b225f2276333001dc0f96179bfef012277ae Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Fri, 8 Jan 2016 08:41:38 -0800 Subject: Support XPath string value for parse_embed_pcdata --- src/pugixml.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.3