modified XMLBuilder to validate against the latest schema(validate.rng)