XPath

From Chorke Wiki
Revision as of 18:50, 12 September 2023 by Shahed (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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