fixed problem reported on the mailing list by Melvyn Sopacua - wrong * entities.c, valid.c: fixed problem reported on the mailing list by Melvyn Sopacua - wrong argument order on functions called through xmlHashScan.