We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ea01bd commit 13d720bCopy full SHA for 13d720b
XMLPatch/Program.cs
@@ -278,6 +278,11 @@ private static void ProcessSingleFile(
278
}
279
280
XElement diffRoot = diffDoc.Root ?? throw new InvalidOperationException("diffDoc.Root is null");
281
+ if (diffRoot.Name.LocalName != "diff")
282
+ {
283
+ Logger.Error($"Root element of diff XML is not 'diff'. Found: '{diffRoot.Name}'.");
284
+ return;
285
+ }
286
287
XElement originalRoot = originalDoc.Root ?? throw new InvalidOperationException("originalDoc.Root is null");
288
0 commit comments