大家好,我在提取此标签组成中的字符串时遇到问题。
<text:p>ス<text:span text:style-name="T1">イ</text:span>カ</text:p>
我想获取text:p
和text:span
标签内的所有字符。
输出应该看起来像这样スイカ
如何构成上面提取的xpath模式?
尝试在问题中的xml上使用这些xpath表达式之一:
//*[local-name()='text:p']
或
//text:p
或
string(//text:p)
输出应为:
スイカ