Linux Bash XMLLINT with XPATH

后端 未结 3 713
孤独总比滥情好
孤独总比滥情好 2020-12-31 05:17

Today I get to learn how to use xmllint properly. It does not seem to be well covered or explained. I plan to use a single language resource file to run my entire system.

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 05:37

    My favorite is xmlstarlet because it seems to be more powerful than xmllint:

    xmlstarlet sel -t -v '/resources/item[@id="index.php"]/description/text()' en.xml
    

提交回复
热议问题