Xmllint

De Linuxmemo.

(Différences entre les versions)
Ligne 17 : Ligne 17 :
==Xpath==
==Xpath==
  xmllint --xpath "XPATH_EXPRESSION" file.xml
  xmllint --xpath "XPATH_EXPRESSION" file.xml
 +
 +
==Language Xpath==
 +
Voir [[XPath]]

Version du 2 octobre 2025 à 05:55

Analyseur de fichiers XML

Sommaire

Valider la syntaxe

xmllint --valid file.xml

Correction de syntaxe

xmllint --recover file.xml > filesanserreur.xml

Auto indente

xmllint --format file.xml

Mode interactif

xmllint --shell file.xml
help

Xpath

xmllint --xpath "XPATH_EXPRESSION" file.xml

Language Xpath

Voir XPath

Outils personnels