我有第三方应用程序生成Microsoft <E2ETraceEvent/>
节点,所以基本上有很多根节点我无法弄清楚是否有办法告诉忽略XSLT的多根问题而不创建另一个进程来包装条目周围的根元素?如果是这样的话?
基本上,XML文件包含许多条目,如下所示
<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
<EventID>1</EventID>
<Type>3</Type>
<SubType Name="Error">0</SubType>
<Level>2</Level>
<TimeCreated SystemTime="2012-10-21T16:38:10.0421996Z" />
<Source Name="Framework" />
<Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" />
<Execution ProcessName="Framework" ProcessID="2448" ThreadID="15" />
<Channel />
<Computer>WIN</Computer>
</System>
<ApplicationData>
<TraceData>
<DataItem>
<TraceRecord Severity="Error" xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord">
<TraceIdentifier>Framework</TraceIdentifier>
<Description>Killing unresponsive jobs.</Description>
<AppDomain>JobHost</AppDomain>
</TraceRecord>
</DataItem>
</TraceData>
</ApplicationData>
</E2ETraceEvent>