0
我试图从Talend中读取XML中CDATA中的属性值。我得到的价值与CDATA一起,而不是单独的价值。 我的XML格式是:如何在Talend中读取XML中CDATA中的属性值
<root>
<node attribute="![CDATA[value]]" />
</root>
在XPath,如果我给它的属性是检索值[CDATA [值]!我只想得到“价值”。是否有可能获得CDATA内部的价值?
变化似乎你不能有CDATA的属性中。请参阅http://stackoverflow.com/questions/1289524/is-it-possible-to-have-html-text-or-cdata-inside-an-xml-attribute – Corentin