下面是一個XML示例。p(段落)中的xpath br(換行符)
<p>
Thisisgood
</p>
<p>
Thisisbad
</p>
<p>
This
<br>
is
<br>
acceptable
</p>
<p>
Thisisfine
</p>
我想要的結果:
Thisisgood
Thisisbad
Thisisacceptable
Thisisfine
我使用XPath //p/text()
在谷歌文檔(= IMPORTXML)。這導致:
Thisisgood
Thisisbad
This is acceptable (appearing in different cells)
Thisisfine
什麼XPath會給我我需要的結果?謝謝。
感謝您的信息。 – user3103778