XML: schemas.c: fix possible memleak + less magic with numeric constants
Memory leak spotted by Ken (thanks); demagicizing numeric constants
is akin to 16eeb6882 landed in the interim (possible annoyance with
repeated strings could be mitigated with suitable macros).