C# 将HTML转为XML

小微 科技C# 将HTML转为XML已关闭评论120字数 347阅读模式
摘要本文以Cusing Spire.Doc;namespace HTMLtoXML{class Program{static void Main{//创建Document类的对象Doc...

using Spire.Doc;

namespace HTMLtoXML
{
class Program
{
static void Main
{
//创立Document类的对象
Document doc = new Document;文章源自微观生活(93wg.com)微观生活-https://93wg.com/4656.html

//加载html文件
doc.LoadFromFile;文章源自微观生活(93wg.com)微观生活-https://93wg.com/4656.html

//保留为XML格式
doc.SaveToFile;
System.Diagnostics.Process.Start;
}
}
}

vb.net文章源自微观生活(93wg.com)微观生活-https://93wg.com/4656.html

Imports Spire.Doc文章源自微观生活(93wg.com)微观生活-https://93wg.com/4656.html

Namespace HTMLtoXML
Class Program
Private Shared Sub Main)
&39;加载html文件
doc.LoadFromFile文章源自微观生活(93wg.com)微观生活-https://93wg.com/4656.html

&文章源自微观生活(93wg.com)微观生活-https://93wg.com/4656.html

—End—文章源自微观生活(93wg.com)微观生活-https://93wg.com/4656.html

以上就是微观生活(93wg.com)关于“C# 将HTML转为XML”的详细内容,希望对大家有所帮助!文章源自微观生活(93wg.com)微观生活-https://93wg.com/4656.html 文章源自微观生活(93wg.com)微观生活-https://93wg.com/4656.html

 
小微
  • 版权声明: 本文部分文字与图片资源来自于网络,转载此文是出于传递更多信息之目的,若有来源标注错误或侵犯了您的合法权益,请立即通知我们(管理员邮箱:81118366@qq.com),情况属实,我们会第一时间予以删除,并同时向您表示歉意,谢谢!
  • 转载请务必保留本文链接:https://93wg.com/4656.html