XPath: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<source lang="bash">
wget -cq https://jaist.dl.sourceforge.net/project/videlibri/Xidel/Xidel%200.9.8/xidel_0.9.8-1_amd64.deb -P ${HOME}/Downloads
sudo apt install ~/Downloads/xidel_0.9.8-1_amd64.deb
sudo apt --fix-broken install
</source>
==Playground==
<source lang="bash">
xidel --xquery '<table>{for $i in 1 to 10 return <tr><td>{$i}</td><td>{if ($i mod 2 = 0) then "even" else "odd"}</td></tr>}</table>' --output-format xml
</source>
==References==
==References==
{|
{|

Latest revision as of 18:50, 12 September 2023

wget -cq https://jaist.dl.sourceforge.net/project/videlibri/Xidel/Xidel%200.9.8/xidel_0.9.8-1_amd64.deb -P ${HOME}/Downloads
sudo apt install ~/Downloads/xidel_0.9.8-1_amd64.deb
sudo apt --fix-broken install

Playground

xidel --xquery '<table>{for $i in 1 to 10 return <tr><td>{$i}</td><td>{if ($i mod 2 = 0) then "even" else "odd"}</td></tr>}</table>' --output-format xml

References