From bc8adb31897fc6223a6b41b21b725158bd641a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Pol=C3=A1=C5=A1ek?= Date: Mon, 20 Oct 2025 19:00:04 +0200 Subject: [PATCH] BugReport: Fix incorrect XML closing tag syntax generated by XmlDocumentEx (#42399) ## Summary of the Pull Request The `XmlDocumentEx::Print` method previously used `<\\` to close XML tags, which is invalid. This commit replaces `<\\` with ` ## PR Checklist - [x] Closes: #42390 - [x] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [x] **Tests:** Added/updated and all pass - [x] **Localization:** All end-user-facing strings can be localized - [x] **Dev docs:** Added/updated - [x] **New binaries:** Added on the required places - [x] **Documentation updated:** ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed --- tools/BugReportTool/BugReportTool/XmlDocumentEx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/BugReportTool/BugReportTool/XmlDocumentEx.cpp b/tools/BugReportTool/BugReportTool/XmlDocumentEx.cpp index d2e71705b1..3fee8f927e 100644 --- a/tools/BugReportTool/BugReportTool/XmlDocumentEx.cpp +++ b/tools/BugReportTool/BugReportTool/XmlDocumentEx.cpp @@ -19,13 +19,13 @@ void XmlDocumentEx::Print(winrt::Windows::Data::Xml::Dom::IXmlNode node, int ind PrintTagWithAttributes(node); if (!node.HasChildNodes()) { - stream << L"<\\" << node.NodeName().c_str() << ">" << std::endl; + stream << L"" << std::endl; return; } if (node.ChildNodes().Size() == 1 && !node.FirstChild().HasChildNodes()) { - stream << node.InnerText().c_str() << L"<\\" << node.NodeName().c_str() << ">" << std::endl; + stream << node.InnerText().c_str() << L"" << std::endl; return; } @@ -40,7 +40,7 @@ void XmlDocumentEx::Print(winrt::Windows::Data::Xml::Dom::IXmlNode node, int ind { stream << " "; } - stream << L"<\\" << node.NodeName().c_str() << ">" << std::endl; + stream << L"" << std::endl; } void XmlDocumentEx::PrintTagWithAttributes(winrt::Windows::Data::Xml::Dom::IXmlNode node)