XML corrections to pass DTD validation

Also added bit values to the flag parameters to isolate the bit of interest.