XmlDocumentEx.h
1 #pragma once 2 #include <winrt/Windows.Data.Xml.Dom.h> 3 #include <string> 4 #include <sstream> 5 6 class XmlDocumentEx : public winrt::Windows::Data::Xml::Dom::XmlDocument 7 { 8 private: 9 std::wstringstream stream; 10 void Print(winrt::Windows::Data::Xml::Dom::IXmlNode node, int indentation); 11 void PrintTagWithAttributes(winrt::Windows::Data::Xml::Dom::IXmlNode node); 12 13 public: 14 std::wstring GetFormatedXml(); 15 };