<EndTest Title="GetLoggerTest" TUID="" Result="Fail" Repro="" CA="1005976492" LA="1008475784">
<rti id="3805221601" />
<ctx id="1526293091" />
</EndTest>
<rti id="3805221601" />
<ctx id="1526293091" />string nn;上面的字符赋值给nn我要获得
<EndTest Title="GetLoggerTest" TUID="" Result="Fail" Repro="" CA="1005976492" LA="1008475784">
<rti id="3805221601" />
<ctx id="1526293091" />
</EndTest>
<rti id="3805221601" />
<ctx id="1526293091" />
</EndTest>
<rti id="3805221601" />
<ctx id="1526293091" />string nn;上面的字符赋值给nn我要获得
<EndTest Title="GetLoggerTest" TUID="" Result="Fail" Repro="" CA="1005976492" LA="1008475784">
<rti id="3805221601" />
<ctx id="1526293091" />
</EndTest>
<EndTest.*</EndTest>匹配你要得到的数据吧.
content = content.Substring(content.LastIndexOf("</EndTest>" + 1));
textBox1.AppendText(content + "\r\n");
我这么做报错了...