当前位置:编程学习 > C#/ASP.NET >>

TextXmlHelp

namespace TestXmlHelper {
using System;
using System.Xml;
using System.Collections;
using RobBirdwell.XmlHelper;
/*******
The following classes serve as a 易做图 test app for the XmlHelper module.
It attempts to load "MyTestObj.xml"    - the text for this is at the bottom
of this listing.

This is a work in progress and provided solely to test and learn C#.
********/
class TestXmlHelper // Test class for XmlHelper
    {
    static int Main(string[] args)
     {
     
     Console.WriteLine("Begin XML Load test...");

     MyManager nm = new MyManager();
     if (nm.Load() == true)
    Console.WriteLine("End Load Test - XML Data Loaded Successfully!");
     else
    Console.WriteLine("End Load Test - XML Load FAILED!");

     Console.WriteLine("Begin XML Create test...");
     
     // Demonstrate how we can create an XML document from scratch...
     XmlHelper myXml = new XmlHelper();
     myXml.LoadXML("<MyRootNode/>", XmlHelper.LoadType.FromString);
     
     // Now create some children - Elements & Attributes...
补充:asp.net教程,XML应用
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,