#!/bin/bash # XMLWF USAGE xmlwf xml/oup-sample.xml echo $? xmlwf xml/bad-formed.xml echo $? xmlwf xml/* echo $? # get-doctype USAGE 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 # xmlstarlet c14n / val / tr / sel xmlstarlet c14n xml/wiley-sample.xml > tmp/wiley.xml xmlstarlet val -e -d dtd/Wileyml3gv20-flat/Wileyml3gv20-flat.dtd tmp/wiley.xml