improve the protocol of xml