From 0adae3e06dc398e4168ed7955ab14e045163134e Mon Sep 17 00:00:00 2001 From: panda <1415243231@qq.com> Date: Mon, 25 May 2026 00:11:43 +0800 Subject: [PATCH] fix: strip ns0: namespace prefix in _extract_jrxml() --- agent/nodes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agent/nodes.py b/agent/nodes.py index a9bc08b..d3dbe15 100644 --- a/agent/nodes.py +++ b/agent/nodes.py @@ -1677,6 +1677,9 @@ def _extract_jrxml(text: str) -> str: 3. 纯 JRXML 无包装 """ text = text.strip() + # 清理 LLM 输出的 ns0: 命名空间前缀和声明 + text = text.replace("ns0:", "") + text = re.sub(r'\s+xmlns:ns0="[^"]*"', "", text) # 检测并提取 markdown 代码块中的内容 # 如果第一个代码块的内容看起来是完整 JRXML(以