91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 659KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2022-06-03
  • 語言: 其他
  • 標(biāo)簽: Xml??Xslt??工具??

資源簡介

Xml+Xslt測試工具

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.IO;
using?System.Linq;
using?System.Text;
using?System.xml;

namespace?xml_Xslt
{
????public?class?Formater
????{
????????public?static?void?Formatxml(ICSharpCode.TextEditor.TextEditorControl?text)
????????{
????????????string?xml?=?text.Text;
????????????var?xd?=?new?xmlDocument();
????????????xd.Loadxml(xml);
????????????var?sb?=?new?StringBuilder();
????????????var?sw?=?new?StringWriter(sb);
????????????xmlTextWriter?xtw?=?null;
????????????try
????????????{
????????????????xtw?=?new?xmlTextWriter(sw);
????????????????xtw.Formatting?=?Formatting.Indented;
????????????????xtw.Indentation?=?1;
????????????????xtw.IndentChar?=?‘\t‘;
????????????????xd.WriteTo(xtw);
????????????}
????????????finally
????????????{
????????????????if?(xtw?!=?null)
????????????????????xtw.Close();
????????????}
????????????text.Text?=?sb.ToString();
????????}


????????///?
????????///?????格式化HTML輸出
????????///?

????????///?
????????///?是否縮進(jìn)
????????///?
????????public?static?string?FormatHtml(string?str?bool?bLineAndIndent)
????????{
????????????xmlDocument?document1?=?ConvertToxmlDocument(str);
????????????if?(bLineAndIndent)
????????????{
????????????????var?builder1?=?new?StringBuilder();
????????????????var?writer1?=?new?xmlTextWriter(new?StringWriter(builder1));
????????????????writer1.IndentChar?=?‘?‘;
????????????????writer1.Indentation?=?4;
????????????????writer1.Formatting?=?Formatting.Indented;
????????????????document1.DocumentElement.WriteContentTo(writer1);
????????????????return?builder1.ToString();
????????????}
????????????return?document1.DocumentElement.Innerxml;
????????}

????????///?
????????///?????轉(zhuǎn)換為整理后的xml文檔
????????///?

????????///?
????????///?
????????private?static?xmlDocument?ConvertToxmlDocument(string?str)
????????{
????????????var?document1?=?new?xmlDocument();
????????????document1.Loadxml(“l/>“);
????????????SafeHtmlParser.ParseHtml(document1.DocumentElement?str);
????????????return?document1;
????????}
????}


}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????982??2013-07-21?15:37??xml+Xslt\bin\Debug\data?-?副本?(2).xml

?????文件????????654??2013-07-21?15:37??xml+Xslt\bin\Debug\data?-?副本?(2).xslt

?????文件????????328??2013-07-21?15:45??xml+Xslt\bin\Debug\data.xml

?????文件???????1216??2013-07-21?15:45??xml+Xslt\bin\Debug\data.xslt

?????文件?????192512??2013-07-21?09:42??xml+Xslt\bin\Debug\ICSharpCode.SharpZipLib.dll

?????文件?????393216??2013-07-21?09:42??xml+Xslt\bin\Debug\ICSharpCode.TextEditor.dll

?????文件?????800256??2013-07-21?15:45??xml+Xslt\bin\Debug\xml+Xslt.exe

?????文件??????77312??2013-07-21?15:45??xml+Xslt\bin\Debug\xml+Xslt.pdb

?????文件??????11608??2013-07-21?15:45??xml+Xslt\bin\Debug\xml+Xslt.vshost.exe

?????文件????????490??2012-06-06?02:06??xml+Xslt\bin\Debug\xml+Xslt.vshost.exe.manifest

?????文件???????2307??2013-07-21?11:06??xml+Xslt\Formater.cs

?????文件?????192512??2013-07-21?09:42??xml+Xslt\Library\ICSharpCode.SharpZipLib.dll

?????文件?????393216??2013-07-21?09:42??xml+Xslt\Library\ICSharpCode.TextEditor.dll

?????文件???????4944??2013-07-21?15:45??xml+Xslt\MainForm.cs

?????文件??????15784??2013-07-21?15:45??xml+Xslt\MainForm.Designer.cs

?????文件?????565517??2013-07-21?15:45??xml+Xslt\MainForm.resx

?????文件???????7200??2013-07-21?09:44??xml+Xslt\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

?????文件???????6666??2013-07-21?15:45??xml+Xslt\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

?????文件???????1034??2013-07-21?15:45??xml+Xslt\obj\x86\Debug\xml+Xslt.csproj.FileListAbsolute.txt

?????文件????????908??2013-07-21?15:45??xml+Xslt\obj\x86\Debug\xml+Xslt.csproj.GenerateResource.Cache

?????文件???????9982??2013-07-21?09:47??xml+Xslt\obj\x86\Debug\xml+Xslt.csprojResolveAssemblyReference.cache

?????文件?????800256??2013-07-21?15:45??xml+Xslt\obj\x86\Debug\xml+Xslt.exe

?????文件??????77312??2013-07-21?15:45??xml+Xslt\obj\x86\Debug\xml+Xslt.pdb

?????文件?????373092??2013-07-21?15:45??xml+Xslt\obj\x86\Debug\xml_Xslt.MainForm.resources

?????文件????????180??2013-07-21?15:37??xml+Xslt\obj\x86\Debug\xml_Xslt.Properties.Resources.resources

?????文件?????372526??2013-07-21?15:37??xml+Xslt\Pencil3.ico

?????文件????????492??2013-07-21?09:24??xml+Xslt\Program.cs

?????文件???????1348??2013-07-21?09:09??xml+Xslt\Properties\AssemblyInfo.cs

?????文件???????2868??2013-07-21?09:09??xml+Xslt\Properties\Resources.Designer.cs

?????文件???????5612??2013-07-21?09:09??xml+Xslt\Properties\Resources.resx

............此處省略19個文件信息

評論

共有 條評論