Config file XML Schema Definition

After @hreinnbeck’s work in his online config validator, I was thinking about defining an XML Schema file for casparcg.config files. I don’t know for sure if it might help to straighten the documentation a bit, but I think it might be really helpful for writing more concise validators for every CasparCG version available.

Now I’m no expert about XML files nor XSD files, but I think it’s worth a shot. So far I’m writing and testing my XSD in Visual Studio Code with RedHat’s XML extension which highlights validation errors like in these screenshots:

image

image

I’ll be asking a lot of questions about possible settings and values, as well as proposals for ordering them, as validation can be picky about that. I know that below every config file there’s a thorough list of possible values, but these have changed in the latest releases (2.0.7, 2.1.x, NRK’s 2.1.x and 2.3.x) as well as no information about optional/required values.

Any feedback will be appreciated.

1 Like