Support XPath string value for parse_embed_pcdata
This commit is contained in:
parent
8b01f8923c
commit
85d8b225f2
@ -7653,6 +7653,10 @@ PUGI__NS_BEGIN
|
|||||||
{
|
{
|
||||||
xpath_string result;
|
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();
|
xml_node cur = n.first_child();
|
||||||
|
|
||||||
while (cur && cur != n)
|
while (cur && cur != n)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user