Skip to content

Instantly share code, notes, and snippets.

@diogobaracho
Created July 21, 2015 20:50
Show Gist options
  • Save diogobaracho/ed62151a6e34ee0a718c to your computer and use it in GitHub Desktop.
Save diogobaracho/ed62151a6e34ee0a718c to your computer and use it in GitHub Desktop.
Check XML sintaxe error like "Warning: simplexml_load_string(): Entity: line 2: parser error : XML declaration allowed only at the start of the document"
find . -type f -not -name 'wsi.xml' -not -name 'wsdl.xml' -not -name 'wsdl2.xml' -name '*.xml' -exec xmllint --noout {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment