linq to xml There are multiple root elements.

Posted chucklu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linq to xml There are multiple root elements.相关的知识,希望对你有一定的参考价值。

 

var temp2 = temp1.Element("staticContent");
            if (temp2 != null)
            {
                string str = "<remove fileExtension=".svg" />
               <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
               <remove fileExtension=".nupkg" />
               <mimeMap fileExtension=".nupkg" mimeType="application/zip, application/octet-stream" />
               <remove fileExtension=".webm" />
               <mimeMap fileExtension=".webm" mimeType="video/webm" />
               <remove fileExtension=".mp4" />
               <mimeMap fileExtension=".mp4" mimeType="video/mp4" />";
                temp2.AddFirst(XElement.Parse(str));
            }

必须把多个节点从,拆分开来,逐个添加

 

以上是关于linq to xml There are multiple root elements.的主要内容,如果未能解决你的问题,请参考以下文章

There are test failures.Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump

运行时候报异常could only be replicated to 0 nodes instead of minReplication (=1). There are 2 datanode(s) r

put: File COPYING could be replicated to 0 nodes instead of minReplication.There are 0 datanodes解决方案

put: File COPYING could be replicated to 0 nodes instead of minReplication.There are 0 datanodes解决方案

ENVI PCA unable to compute convarirance statistics because there are NaN pixels contained in this da

ubuntu16.04 yum报错:There are no enabled repos. Run “yum repolist all“ to see the repos you have.(代码片段