Xanthan gum is a high molecular weight polysaccharide biocompatible to biological systems, so its products promise high potential in medicine. In this study, we crosslinked xanthan gum with citric acid to develop a transparent film for protecting the wound. Silver nanoparticles (AgNPs) are incorporated into the film to enhance the antimicrobial property of our biomaterial. This paper discussed the characteristics and manufacturing of this nanocomposite dressing. The safety of the dressing was studied using fibroblasts (L929) by the method of 3-(4,5-dimethylthiazol-2-yl)-2,5-diphenyltetrazolium bromide (MTT) assay and staining of ethidium homodimer (PI) and calcein AM. The bacterial inhibition test and application of the dressing to nonhealing wounds infected with methicillin-resistant S. aureus (MRSA) were performed to evaluate the antibacterial effects in vitro and in vivo, respectively. The results indicated that the dressing could restrict the formation of biofilms, reduce inflammatory reactions, and promote the angiogenesis of granulation tissues in infectious wounds. Therefore, this dressing has a great advantage over traditional clinical products especially when administered under the condition of infections or for the purpose of infection prevention.