Support XPath string value for parse_embed_pcdata

This commit is contained in:
Arseny Kapoulkine
2016-01-08 08:41:38 -08:00
parent 8b01f8923c
commit 85d8b225f2

View File

@@ -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)