I’m creating a windows store application in Visual Studio 2012 for Windows 8. I need to use the XmlTextWriter to write my output. I included the namespace
using System.Xml;
But the class is still not found. Can someone tell me how to use the XmlTextWriter in a Windows 8 Metro application?
You cannot use XmlTextWriter within a Windows Store application. You must use the XmlWriter class instead. In the future if a class does not list itself as supporting .NET for Windows Store apps then it cannot be used within an application being targeted to the Windows Store.
Since XmlWriter is an abstract class it basically means you will have to recreate the
XmlTextWriterclass.