Test-Driven XML Schema dev with xmlstarlet
Just to document how I do this:
Problem: I need a schema for FooTask
Solution:
Create a ‘tests’ directory. populate said directory with simple example xml files. Name those files valid-foo.xml or invalid-bar.xml (I use numbers for foo and bar). Create your xsd file in the same directory as ‘tests’. Lets call it foo.xsd Copy the following Makefile into the same location.
XSD=foo.xsd # [...]