From 00ed40454dc52392bade3dac69a27af30c13f00a Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Sun, 3 Aug 2025 16:09:18 +0900 Subject: [PATCH] common/xml: parse CDATA as text Before this patch, was ignored in many cases. For example, this didn't work: --- src/common/xml.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/xml.c b/src/common/xml.c index df8c26e4..797af9c0 100644 --- a/src/common/xml.c +++ b/src/common/xml.c @@ -138,7 +138,8 @@ lab_xml_node_is_leaf(xmlNode *node) return false; } for (xmlNode *child = node->children; child; child = child->next) { - if (child->type != XML_TEXT_NODE) { + if (child->type != XML_TEXT_NODE + && child->type != XML_CDATA_SECTION_NODE) { return false; } }