dtd | 8 years ago | ||
tmp | 8 years ago | ||
tools | 8 years ago | ||
xml | 8 years ago | ||
xslt | 8 years ago | ||
.gitignore | 8 years ago | ||
README.md | 8 years ago | ||
package.json | 8 years ago | ||
parse-doctype | 8 years ago |
08 janvier 2016
git clone ssh://vsistex.intra.inist.fr:22222/git/istex/ade-outils-xml.git cd ade-outils-xml npm install
Mon fichier XML est-il bien formé ?
&<>;,
dans les attributs ou noeuds textexmlwf xml/oup-sample.xml echo $? xmlwf xml/bad-formed.xml echo $? xmlwf xml/* echo $?
Récupération des informations contenues dans la ligne doctype.
tools/parse_doctype xml/oup-sample.xml tools/parse_doctype xml/wiley-sample.xml tools/parse_doctype xml/parsing-problem.xml cat tools/node_modules/get-doctype/test/dataset/big.xml | tools/parse_doctype
Validation de documents selon DTD, Schéma XML ou RelaxNG.
xmlstarlet val -e -d dtd/Wileyml3gv20-flat/Wileyml3gv20-flat.dtd tmp/wiley.xml