嗨,有谁知道hwo使用xpath删除attrbute.特别是来自链接的rel属性及其文本.即<a href='http://google.com' rel='some text'>Link</a> ,我想删除rel ='some text'.
<a href='http://google.com' rel='some text'>Link</a>
我正在解析的html中会有多个链接.
xpath
xpath ×1