The term \"Peer-To-Peer\" (P2P) refers to a series of systems and applications that use a decentralized manner for distributed resources. Peer-to-Peer (P2P) network has become an essential transmission model for information dissemination and file sharing over the Internet. In this paper, the authors propose an information security scheme based on JXTA protocol, called XMLP2P. The scheme achieves the aim of hiding secret information in JXTA by modifying the XML documents. In addition, they use secret information dispersal algorithm to complete sensitive data transmission. Security analysis shows their secret scheme is effective in P2P environment.