我不知道你什么情况,我是这么做的:
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.IO;
using System.Web;
using System.Xml;
namespace TestConsole
{
class Program
{
static void Main(string[] args)
{
xml();
}
public static void xml()
{
XmlDocument xmlDoc = new XmlDocument();