如何使用lua脚本获取xml段落长度

如何使用lua脚本获取 XML 文本段落的数量。

boxno = string.len(xml, 'parstyle="Text"')
myvar.message = tostring(boxno)
点赞