最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
TextXmlHelp
时间:2022-07-02 11:49:35 编辑:袖梨 来源:一聚教程网
namespace TestXmlHelper {
using System;
using System.Xml;
using System.Collections;
using RobBirdwell.XmlHelper;
/*******
The following classes serve as a simple 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(" ", XmlHelper.LoadType.FromString);
// Now create some children - Elements & Attributes...
using System;
using System.Xml;
using System.Collections;
using RobBirdwell.XmlHelper;
/*******
The following classes serve as a simple 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("
// Now create some children - Elements & Attributes...
相关文章
- 王者荣耀侦探能力大测试攻略 王者荣耀侦探能力大测试怎么过 11-22
- 无期迷途主线前瞻兑换码是什么 11-22
- 原神欧洛伦怎么培养 11-22
- 炉石传说网易云音乐联动怎么玩 11-22
- 永劫无间手游确幸转盘怎么样 11-22
- 无期迷途主线前瞻兑换码是什么 无期迷途主线前瞻直播兑换码介绍 11-22