fixed xml related functions that used boolean.

Previous change form boolean to Boolean broke them.