如何替换以下字符串? [英] How Do I Replace The Following String?
本文介绍了如何替换以下字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我正在创建xml.I无法用斜线替换字符串..可以帮忙吗?
strVersion = strVersion.Replace(strVersion = strVersion.Replace(xmlns:xsd = \http://www.w3.org/2001/XMLSchema\,xmlns:xsi = \http://www.w3.org/2001/ XMLSchema-instance \);
解决方案
string strVersion = xmlns:xsd = \http://www.w3.org/2001/XMLSchema\& ......... quot;;
strVersion = strVersion.Replace( xmlns:xsd = \http://www.w3.org/2001/XMLSchema\, xmlns:xsi = \http://www.w3.org/2001/XMLSchema-instance\);
}
Hi
I am creating xml.I couldnt replace strings with slashes..Can u help?
strVersion = strVersion.Replace(" strVersion = strVersion.Replace("xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"", "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"");
解决方案
string strVersion = "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\&.........quot;"; strVersion = strVersion.Replace("xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"", "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\""); }
这篇关于如何替换以下字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文