fix a bug in xmldata