以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XML基础 』  (http://bbs.xml.org.cn/list.asp?boardid=1)
----  [原创]奇怪,进来帮我看下!  (http://bbs.xml.org.cn/dispbbs.asp?boardid=1&rootid=&id=59480)


--  作者:ganlanfei
--  发布时间:3/5/2008 9:41:00 PM

--  [原创]奇怪,进来帮我看下!
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.IO;

namespace dome
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Read();

            if (args.Length != 1)
            {
                Console.WriteLine("Usage:java DOMSample filename");
                return;
            }
            XmlDocument document = new XmlDocument();
            document.Load(args[0]);     //载入xml文档
            Console.WriteLine("元素是:");
            PrintElement(document);
            Console.WriteLine("属性是:");
            PrintElementAttributes(document);
           
        }
    }
}


本人新手!
我在 C#中打入这样的代码(按课本上给的代码)
为什么PrintElement和PrintElementAttributes都没有智能感应呢?
我已把所需要的命名空间都导入了!望高手解决!
在线等ing


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
78.125ms