修改XML顶部申明信息
一个xml最开始都会有一串申明
<?xml version="1.0" encoding="utf-8"?>
<?mso-infoPathSolution name="urn:schemas-microsoft-com:office:infopath:iXU0E:http---test-test" solutionVersion="1.0.0.401" productVersion="14.0.0.0" PIVersion="1.0.0.0" href="http://test.test" language="zh-CN"?>
<?mso-application progid="Document" versionProgid="Document.3"?>
<?mso-infoPath-file-attachment-present ?>
如上所示,我需要修改第二行里的href的内容,如何通过编码实现?