xml.c: Fix writing <WINDOWS> element