using System;
using System.IO;
using System.Xml;
public class aXmlRead
{
public static void Main()
{
XmlDocument doc = new XmlDocument();
XmlTextReader reader = new XmlTextReader("newbooks.xml");
reader.Read();
doc.Load(reader); // error happens in run time
doc.Save(Console.Out);
}
}
p*u 发帖数: 2454
2
~~~~~~can u add path to it?
【在 b******y 的大作中提到】 : using System; : using System.IO; : using System.Xml; : public class aXmlRead : { : public static void Main() : { : XmlDocument doc = new XmlDocument(); : XmlTextReader reader = new XmlTextReader("newbooks.xml"); : reader.Read();