Skip to content

Instantly share code, notes, and snippets.

@nalt
nalt / Shell: Check launch files against DTD
Last active February 3, 2025 18:46
Roslaunch XML schema, DTD and XSD
wget https://gist.githubusercontent.com/nalt/dfa2abc9d2e3ae4feb82ca5608090387/raw/roslaunch.dtd
find /opt/ros -iname '*.launch' -exec xmllint --valid --dtdvalid roslaunch.dtd --noout {} ';' 2>&1 | grep -v "no DTD found" | grep -v '<launch>'
# Missing DOCTYPE is reported as an error.
# $(...) will be rejected by this DTD for enum attributes