虎克的博客

Enthusiasm Biogeography-Biodiversity Informatics-Data Sciences

XML学习笔记(四):格式化输出XML文档

| Comments

页面代码:

   1:  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="WriteXMLFormat.aspx.cs" Inherits="WriteXML" %>

   2:   

   3:  <!DOCTYPE html PUBLIC "–//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;>

   4:  <html xmlns="http://www.w3.org/1999/xhtml&quot;>

   5:  <head runat="server">

   6:      <title></title>

   7:  </head>

   8:  <body>

   9:      <form id="form1" runat="server">

  10:      <div>

  11:          ConnecionString:

  12:          <asp:TextBox ID="TextBox1" runat="server" Height="70px" Width="531px"></asp:TextBox><br />

  13:          Table Name:

  14:          <asp:TextBox ID="TextBox2" runat="server" Height="48px" Width="525px"></asp:TextBox><br />

  15:          Destination File Name:

  16:          <asp:TextBox ID="TextBox3" runat="server" Height="56px" Width="519px"></asp:TextBox><br />

  17:      </div>

  18:      <asp:RadioButton ID="RadioButton1" Text="Columns as elements" runat="server" GroupName="ExportType" />

  19:      <br />

  20:      <asp:RadioButton ID="RadioButton2" Text="Columns as attributes" runat="server" GroupName="ExportType" />

  21:      <br />

  22:      <asp:CheckBox ID="CheckBox1" Text="Format XML Document" runat="server" />

  23:      <br />

  24:      Indention:

  25:      <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>

  26:      <br />

  27:      Indent Character:<br />

  28:      <br />

  29:      <asp:RadioButton ID="RadioButton3" Text="Space" GroupName="IndentCharacter" runat="server" />

  30:      <br />

  31:      <asp:RadioButton ID="RadioButton4" Text=&

   original link:
   <a href='http://Apiaceae.github.io/blog/2009/05/10/XML%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%28%E5%9B%9B%29%3A%E6%A0%BC%E5%BC%8F%E5%8C%96%E8%BE%93%E5%87%BAXML%E6%96%87%E6%A1%A3/'>http://Apiaceae.github.io/blog/2009/05/10/XML%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%28%E5%9B%9B%29%3A%E6%A0%BC%E5%BC%8F%E5%8C%96%E8%BE%93%E5%87%BAXML%E6%96%87%E6%A1%A3/</a><br/>
   &nbsp;written by <a href='http://Apiaceae.github.io'>Hooker</a>
   &nbsp;posted at <a href='http://Apiaceae.github.io'>http://Apiaceae.github.io</a>
   </p>

Comments