简体   繁体   中英

How to use XmlTextWriter in windows8 Store app?

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?

I'm Creating an windows store application in Visual studio 2012 in windows 8. I need to use the XmlTextWriter to write the output.

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 XmlTextWriter class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM