• λ我爱Aspx >> Asp.Net >> .Net FrameWork SDK文档的例子演示
  • .Net FrameWork SDK文档的例子演示

  • :aspxer  Դ:internet  :2007-5-20 16:32:37  ؼ:.net
  • .Net FrameWork SDK文档的例子演示

    ocument.CreateAttribute 效果演示

    using System;

    using System.IO;

    using System.Xml;

    namespace CreateAttribute

    {

    /// <summary>

    /// Class1 的摘要说明。

    /// </summary>

    class Class1

    {

    /// <summary>

    /// 应用程序的主入口点。

    /// </summary>

    [STAThread]

    static void Main(string[] args)

    {

    //

    // TODO: 在此处添加代码以启动应用程序

    //

    XmlDocument doc = new XmlDocument();

    doc.LoadXml("<book genre=@#novel@# ISBN=@#1-861001-57-5@#>" +

    "<title>Pride And Prejudice</title>" +

    "</book>");

    //Create an attribute.

    XmlAttribute attr = doc.CreateAttribute("publisher");

    attr.Value = "WorldWide Publishing";

    //Add the new node to the document.

    doc.DocumentElement.SetAttributeNode(attr);

    Ҷƪл˵?
  • һƪ利用.NET语言开发自己的脚本语言(一)
    һƪ在.net中实现与ASP完全兼容的MD5算法(包括中文字符)