帮助有一个网站,上面有一个 xml 文件 https://example.com/export/xml/com.xml 具有结构
<test>
<date yesterday="25.09.2024" today="26.09.2024" tomorrow="27.09.2024" tomorrow02="28.09.2024"/>
<test1>
<yesterday>Вчера</yesterday>
<today>Сегодня </today>
<tomorrow>Завтра</tomorrow>
<tomorrow02>тоже текст</tomorrow02>
</test1>
例如,如何从该 xml 中获取 Today02 的文本,并将其写入变量。我将弄清楚如何找出变量,我怎样才能至少在控制台中显示此文本?
例如,这可以像这样实现......
对于某个服务器的请求,它可能看起来像这样......