xml entity handling